ath9k_htc: check for underflow in ath9k_htc_rx_msg()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Nov 2015 10:01:20 +0000 (13:01 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Nov 2015 12:05:17 +0000 (14:05 +0200)
commit3a318426e09a9c9266fe6440842e11238f640a20
treec7486fadb7d18ae46ccc1178b197da3c4452678b
parent21ba005464a95e2ac57e13d035d11d29f483738a
ath9k_htc: check for underflow in ath9k_htc_rx_msg()

We check for overflow here, but we don't check for underflow so it
causes a static checker warning.

Fixes: fb9987d0f748 ('ath9k_htc: Support for AR9271 chipset.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/htc_hst.c