From: Marcel Holtmann Date: Thu, 3 Dec 2009 17:07:28 +0000 (+0100) Subject: Bluetooth: Fix miscdev ops owner for virtual driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fed4c2508b7419d0a55958fead6151b32def1683;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: Fix miscdev ops owner for virtual driver The /dev/vhci ops don't refer to the module and so it is possible to unload the module while the file descriptor is in use. This was an accidental removal after the cleanup. Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index c1d389f2cbaf..7595274103fd 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -276,6 +276,7 @@ static int vhci_release(struct inode *inode, struct file *file) } static const struct file_operations vhci_fops = { + .owner = THIS_MODULE, .read = vhci_read, .write = vhci_write, .poll = vhci_poll,