ath10k: add extra sanity check when popping amsdu
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 23 Oct 2014 14:04:24 +0000 (17:04 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 24 Oct 2014 13:29:19 +0000 (16:29 +0300)
commitb30595aea39d6946c1d17c3f278fb8d2fbe2a4cf
treea75add4d16f3db69df37282eaecf25517bb09faf
parent34440df03d638cf31ca915a25537e1addecd7ddc
ath10k: add extra sanity check when popping amsdu

The netbuf pop can return NULL. Make sure to check
for that. It shouldn't happen but better safe than
sorry.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c