From: Salah Triki Date: Fri, 21 Feb 2025 21:32:59 +0000 (+0100) Subject: bluetooth: btusb: Initialize .owner field of force_poll_sync_fops X-Git-Tag: next-20250225~104^2~7 X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=02aa832d14032da40f5c873d5d6753eba54efc97;p=linux%2F.git 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: 800fe5ec302e ("Bluetooth: btusb: Add support for queuing during polling interval") Signed-off-by: Salah Triki Signed-off-by: Luiz Augusto von Dentz --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f5609110f1a0..a8b71362cc30 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -3676,6 +3676,7 @@ static ssize_t force_poll_sync_write(struct file *file, } static const struct file_operations force_poll_sync_fops = { + .owner = THIS_MODULE, .open = simple_open, .read = force_poll_sync_read, .write = force_poll_sync_write,