ath6kl: fix null skb dereference in ath6kl_rx()
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 6 Oct 2011 11:32:32 +0000 (14:32 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:50:56 +0000 (12:50 +0200)
commitad3f78b99e5cd74e9d9643ac8356206f57e796c9
tree68da13f78e4302ca7d040254daeedf0e4ff682fb
parent2e1cb23c5e3c38b25a678a8a14d7464341e8207f
ath6kl: fix null skb dereference in ath6kl_rx()

smatch found that skb might be null in some cases in ath6kl_rx():

ath6kl/txrx.c +1252 ath6kl_rx(222) error: potential null derefence 'skb'.

This will happen when ath6kl is in AP mode and two clients send traffic
to each other.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c