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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:55 +0000 (13:14 +0100)
commit5183d50f79157ba0c0e4fcdf882421e6bdabc562
tree962d7ca827576afe42b1b4863eef58157cd45f10
parent3c94aaf04ec842bbbf400277b09ec570874868d2
wl1251: fix crash on remove due to leftover work item

commit 4c1bcdb5a3354b250b82a67549f57ac27a3bb85f upstream.

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.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/wl1251/main.c