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)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 13:32:05 +0000 (18:32 +0530)
commiteecc472672a787e5b2cea4650ca1aacfc3ad07a9
treecf4c4ade417b6884b3a1e9b1e31b1acb9a2b5e18
parent726df8ee59c82bb1b8fcd9546997ad1a81f076b6
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