Bluetooth: Fix miscdev ops owner for virtual driver
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Dec 2009 17:07:28 +0000 (18:07 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Dec 2009 18:34:19 +0000 (19:34 +0100)
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 <marcel@holtmann.org>
drivers/bluetooth/hci_vhci.c

index c1d389f..7595274 100644 (file)
@@ -276,6 +276,7 @@ static int vhci_release(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations vhci_fops = {
 }
 
 static const struct file_operations vhci_fops = {
+       .owner          = THIS_MODULE,
        .read           = vhci_read,
        .write          = vhci_write,
        .poll           = vhci_poll,
        .read           = vhci_read,
        .write          = vhci_write,
        .poll           = vhci_poll,