Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fed4c250 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

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: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 329ab1b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,