projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2242a3
)
mei: bus: Reset event_cb when disabling a device
author
Samuel Ortiz
<
[email protected]
>
Tue, 21 May 2013 16:52:09 +0000
(18:52 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 21 May 2013 16:57:55 +0000
(09:57 -0700)
After cancelling all reads from the disable hook, we need to reset the
event_cb pointer as well or else we won't be able to set a new one up
when re-enabling the device.
Acked-by: Tomas Winkler <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/misc/mei/bus.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/bus.c
b/drivers/misc/mei/bus.c
index 1e935eacaa7faee9903e20303dc703c75ed014ff..9ecd49a7be1b33cac4ece186e35e3ebc255d9d78 100644
(file)
--- a/
drivers/misc/mei/bus.c
+++ b/
drivers/misc/mei/bus.c
@@
-496,6
+496,8
@@
int mei_cl_disable_device(struct mei_cl_device *device)
}
}
+ device->event_cb = NULL;
+
mutex_unlock(&dev->device_lock);
if (!device->ops || !device->ops->disable)