diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 12:07:28 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 13:34:19 -0500 |
commit | fed4c2508b7419d0a55958fead6151b32def1683 (patch) | |
tree | ea0c0a1d11cf9e0074d9bf5732c5b1d30898a426 /drivers/bluetooth | |
parent | 329ab1b3e6ceac3f77ab400206a97cc402624259 (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')
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 1 |
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 | ||
278 | static const struct file_operations vhci_fops = { | 278 | static 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, |