summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/hci_vhci.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-03 20:07:28 +0300
committerMarcel Holtmann <marcel@holtmann.org>2009-12-03 21:34:19 +0300
commitfed4c2508b7419d0a55958fead6151b32def1683 (patch)
treeea0c0a1d11cf9e0074d9bf5732c5b1d30898a426 /drivers/bluetooth/hci_vhci.c
parent329ab1b3e6ceac3f77ab400206a97cc402624259 (diff)
downloadlinux-fed4c2508b7419d0a55958fead6151b32def1683.tar.xz
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/hci_vhci.c')
-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,