Skip to content

Commit cbf85b9

Browse files
salah-trikiVudentz
authored andcommitted
bluetooth: btusb: Initialize .owner field of force_poll_sync_fops
Initialize .owner field of force_poll_sync_fops to THIS_MODULE in order to prevent btusb from being unloaded while its operations are in use. Fixes: 800fe5e ("Bluetooth: btusb: Add support for queuing during polling interval") Signed-off-by: Salah Triki <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 1e15510 commit cbf85b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/bluetooth/btusb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3644,6 +3644,7 @@ static ssize_t force_poll_sync_write(struct file *file,
36443644
}
36453645

36463646
static const struct file_operations force_poll_sync_fops = {
3647+
.owner = THIS_MODULE,
36473648
.open = simple_open,
36483649
.read = force_poll_sync_read,
36493650
.write = force_poll_sync_write,

0 commit comments

Comments
 (0)