diff options
author | Salah Triki <salah.triki@gmail.com> | 2025-02-21 22:32:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-13 12:58:28 +0100 |
commit | 127c8905ea8e61beabbcebd7f03692a472cc8575 (patch) | |
tree | 5e08472873d5b2d0993a28b99dc41589ea300f9b /drivers/bluetooth | |
parent | 560f4d1299342504a6ab8a47f575b5e6b8345ada (diff) | |
download | linux-127c8905ea8e61beabbcebd7f03692a472cc8575.tar.gz linux-127c8905ea8e61beabbcebd7f03692a472cc8575.tar.bz2 linux-127c8905ea8e61beabbcebd7f03692a472cc8575.zip |
bluetooth: btusb: Initialize .owner field of force_poll_sync_fops
[ Upstream commit cbf85b9cb80bec6345ffe0368dfff98386f4714f ]
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 <salah.triki@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index c80b5aa7628a..bc3f63f1ccd8 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -4230,6 +4230,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, |