Commit cbf85b9c authored by Salah Triki's avatar Salah Triki Committed by Luiz Augusto von Dentz
Browse files

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: 800fe5ec ("Bluetooth: btusb: Add support for queuing during polling interval")
Signed-off-by: default avatarSalah Triki <salah.triki@gmail.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 1e15510b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3644,6 +3644,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,