aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_vhci.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-03 12:07:28 -0500
committerMarcel Holtmann <marcel@holtmann.org>2009-12-03 13:34:19 -0500
commitfed4c2508b7419d0a55958fead6151b32def1683 (patch)
treeea0c0a1d11cf9e0074d9bf5732c5b1d30898a426 /drivers/bluetooth/hci_vhci.c
parent329ab1b3e6ceac3f77ab400206a97cc402624259 (diff)
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)
276} 276}
277 277
278static const struct file_operations vhci_fops = { 278static const struct file_operations vhci_fops = {
279 .owner = THIS_MODULE,
279 .read = vhci_read, 280 .read = vhci_read,
280 .write = vhci_write, 281 .write = vhci_write,
281 .poll = vhci_poll, 282 .poll = vhci_poll,