projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329ab1b
)
Bluetooth: Fix miscdev ops owner for virtual driver
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 3 Dec 2009 17:07:28 +0000
(18:07 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 3 Dec 2009 18:34:19 +0000
(19:34 +0100)
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>
drivers/bluetooth/hci_vhci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/hci_vhci.c
b/drivers/bluetooth/hci_vhci.c
index c1d389f2cbaf76a957f97f296f3f5a0ced45e990..7595274103fd61025f1a54f8e88092d97013ea8b 100644
(file)
--- 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,