wl1251: fix crash on remove due to leftover work item
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 26 Apr 2012 20:07:44 +0000 (23:07 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 19:25:25 +0000 (15:25 -0400)
commit4c1bcdb5a3354b250b82a67549f57ac27a3bb85f
treeeb0344a7ecb1ded174f3c225255e7bd8866fa8f5
parent328c32f0f85467af5a6c4c3289e168d9ad2555af
wl1251: fix crash on remove due to leftover work item

This driver currently leaves elp_work behind when stopping, which
occasionally results in data corruption because work function ends
up accessing freed memory, typical symptoms of this are various
worker_thread crashes. Fix it by cancelling elp_work.

Cc: stable@vger.kernel.org # v2.6.37+
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl1251/main.c