brcmsmac: fix bounds checking in tx/rx
authorPiotr Haber <[email protected]>
Wed, 28 Nov 2012 20:44:07 +0000 (21:44 +0100)
committerJohn W. Linville <[email protected]>
Fri, 30 Nov 2012 18:38:17 +0000 (13:38 -0500)
commit57fe504817ccec9b6ac23e973d2925343bf1e3b6
treee2d352683f674a21e7bfcde05d619aa4d4ef4f4b
parent94d9902dc06a28a1b25cf56a7cdc057608bdf48b
brcmsmac: fix bounds checking in tx/rx

brcms_b_txstatus and brcms_b_recv are off by one when
doing bounds checking on number of packets to process

Reviewed-by: Pieter-Paul Giesberts <[email protected]>
Reviewed-by: Hante Meuleman <[email protected]>
Reviewed-by: Arend van Spriel <[email protected]>
Signed-off-by: Piotr Haber <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/brcm80211/brcmsmac/main.c