projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd77633
)
make sure that diag doesn't call hotplug from interrupt context
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 3 Nov 2006 11:56:38 +0000
(11:56 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 3 Nov 2006 11:56:38 +0000
(11:56 +0000)
SVN-Revision: 5417
openwrt/target/linux/package/diag/src/diag.c
patch
|
blob
|
history
diff --git
a/openwrt/target/linux/package/diag/src/diag.c
b/openwrt/target/linux/package/diag/src/diag.c
index fdbd3ca762caa0c7b0bb5a21e0dde2308a79de42..bb5828bdae2fcdd027746ca4cdfe1adc7ff3c982 100644
(file)
--- a/
openwrt/target/linux/package/diag/src/diag.c
+++ b/
openwrt/target/linux/package/diag/src/diag.c
@@
-666,6
+666,11
@@
struct event_t {
static void hotplug_button(struct event_t *event)
{
+ /* can't do it from interrupt context, reschedule */
+ if (in_interrupt()) {
+ schedule_task(&event->tq);
+ return;
+ }
call_usermodehelper (event->argv[0], event->argv, event->envp);
kfree(event);
}