Explorar o código

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>
Marcel Holtmann %!s(int64=15) %!d(string=hai) anos
pai
achega
fed4c2508b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/bluetooth/hci_vhci.c

+ 1 - 0
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,