diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 18:07:28 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 19:34:19 +0100 |
commit | fed4c2508b7419d0a55958fead6151b32def1683 (patch) | |
tree | ea0c0a1d11cf9e0074d9bf5732c5b1d30898a426 | |
parent | Bluetooth: Remove unused global minor variable (diff) | |
download | linux-fed4c2508b7419d0a55958fead6151b32def1683.tar.xz linux-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>
-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) } static const struct file_operations vhci_fops = { + .owner = THIS_MODULE, .read = vhci_read, .write = vhci_write, .poll = vhci_poll, |