]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix issues in driver unload path for USB chipsets
authorUjjal Roy <royujjal@gmail.com>
Fri, 15 Nov 2013 03:10:42 +0000 (19:10 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Nov 2013 19:29:32 +0000 (14:29 -0500)
commitaac3204526174c529b4606c53b1d7caeec4e46de
treed1628b0f620d60ea8afbd531ca2373a20b5a7732
parentb239f13d3e1720233c09c34a0cd6332e21a8e0a8
mwifiex: fix issues in driver unload path for USB chipsets

1) After driver load failure, clear 'card->adapter' instead of
card pointer so that card specific cleanup is performed later
when user unloads the driver.

2) Clear usb_card pointer in disconnect handler to avoid invalid
memory access when user unloads the driver after removing the
card.

Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/usb.c