]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: fix potential NULL pointer dereference in ath5k_beacon_update()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 00:42:58 +0000 (08:42 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Oct 2012 19:06:04 +0000 (15:06 -0400)
commit95ec86c5f1c25d6da376a51b9e592d63571a9fc9
treec2f28b4a17d0f1291801d89ff0435f51abcd4076
parent649f331ffa2090853f66fb23e9573a17a0213fd9
ath5k: fix potential NULL pointer dereference in ath5k_beacon_update()

The dereference should be moved below the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c