mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
329ab1b3e6
commit
fed4c2508b
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue