]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 c1d389f2cbaf76a957f97f296f3f5a0ced45e990..7595274103fd61025f1a54f8e88092d97013ea8b 100644 (file)
@@ -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,