]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix memory corruption in lbs_remove_card()
authorDaniel Drake <dsd@laptop.org>
Wed, 24 Nov 2010 16:00:49 +0000 (16:00 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Nov 2010 19:41:27 +0000 (14:41 -0500)
commit3e64f4332033c162fdcd46df69be620830566cb8
treefdac47449da391f1e3f1b1e6ec17553fbb97fa65
parentf1a131f1e03a9b249970fdb805e438449009b72e
libertas: fix memory corruption in lbs_remove_card()

"priv" is stored at the end of the wiphy structure, which is freed
during the call to lbs_cfg_free(). It must not be touched afterwards.

Remove the unnecessary NULL assignment causing this memory corruption.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/main.c