ar5523: Don't dereference sta if NULL
authorPontus Fuchs <pontus.fuchs@gmail.com>
Mon, 5 Nov 2012 20:17:51 +0000 (21:17 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Nov 2012 19:55:41 +0000 (14:55 -0500)
commit9ee01b30fdc85a4ab5b0836ad98ac0ae5092fb4f
tree73745e7aec7c092b2efbdf5427dac5c48fe5a96a
parentd01a303e68310695b6d08327454f4ad76a48716f
ar5523: Don't dereference sta if NULL

A missing else caused a potential NULL dereference.

Reported-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar5523/ar5523.c