summaryrefslogtreecommitdiff
path: root/drivers/staging/brcm80211/include
diff options
context:
space:
mode:
authornohee ko <noheek@broadcom.com>2010-10-12 13:33:29 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-12 14:07:45 -0700
commitaf73713642c1c02e5afefb0f807f406e835c0b7f (patch)
treef7ab5cb8bba046eff83db1bc60eed6290f350ec0 /drivers/staging/brcm80211/include
parentc11b0ef8fe171f0b50999d61e401e4908980a774 (diff)
staging: brcm80211: bug fix- rmmod hang problem
Bug fix - rmmod hang problem. Can keep both of kthread & down_interruptible. And in the meantime, can terminate the threads properly during rmmod process. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/include')
-rw-r--r--drivers/staging/brcm80211/include/linuxver.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/staging/brcm80211/include/linuxver.h b/drivers/staging/brcm80211/include/linuxver.h
index a3a20aeda526..5b4babd4653c 100644
--- a/drivers/staging/brcm80211/include/linuxver.h
+++ b/drivers/staging/brcm80211/include/linuxver.h
@@ -35,14 +35,11 @@
#undef IP_TOS
#include <asm/io.h>
-#define KILL_PROC(nr, sig) \
+#define KILL_PROC(pid, sig) \
do { \
struct task_struct *tsk; \
- struct pid *pid; \
- pid = find_get_pid((pid_t)nr); \
- tsk = pid_task(pid, PIDTYPE_PID); \
- if (tsk) \
- send_sig(sig, tsk, 1); \
+ tsk = pid_task(find_vpid(pid), PIDTYPE_PID); \
+ if (tsk) \
+ send_sig(sig, tsk, 1); \
} while (0)
-
#endif /* _linuxver_h_ */