Skip to content

Commit

Permalink
Bluetooth: Fix miscdev ops owner for virtual driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann committed Dec 3, 2009
1 parent 329ab1b commit fed4c25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fed4c25

Please sign in to comment.