aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-03 18:07:28 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-03 19:34:19 +0100
commitfed4c2508b7419d0a55958fead6151b32def1683 (patch)
treeea0c0a1d11cf9e0074d9bf5732c5b1d30898a426 /drivers/bluetooth
parentBluetooth: Remove unused global minor variable (diff)
downloadlinux-dev-fed4c2508b7419d0a55958fead6151b32def1683.tar.xz
linux-dev-fed4c2508b7419d0a55958fead6151b32def1683.zip
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 <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_vhci.c1
1 files changed, 1 insertions, 0 deletions
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,