diff options
author | Xiaotian Feng <xtfeng@gmail.com> | 2012-11-13 19:47:36 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-14 21:50:10 -0500 |
commit | 71c6c837a0fe9d291e0764503f09dac0fec59ce1 (patch) | |
tree | 64fc5d4c2cf468c841050bed08774bd254d5edbf /drivers/power/wm831x_backup.c | |
parent | b2942004fb5c9f3304b77e187b8a1977b3626c9b (diff) |
drivers/net: fix tasklet misuse issue
In commit 175c0dff, drivers uses tasklet_kill to avoid put disabled tasklet
on the tasklet vec. But some of the drivers uses tasklet_init & tasklet_disable
in the driver init code, then tasklet_enable when it is opened. This makes
tasklet_enable on a killed tasklet and make ksoftirqd crazy then. Normally,
drivers should use tasklet_init/tasklet_kill on device open/remove, and use
tasklet_disable/tasklet_enable on device suspend/resume.
Reported-by: Peter Wu <lekensteyn@gmail.com>
Tested-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/power/wm831x_backup.c')
0 files changed, 0 insertions, 0 deletions