brcmsmac: fix bounds checking in tx/rx
authorPiotr Haber <phaber@broadcom.com>
Wed, 28 Nov 2012 20:44:07 +0000 (21:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
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 <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/main.c