]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] bcm43xx-softmac: Fix an off-by-one condition in handle_irq_noise
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 29 Jun 2006 00:11:21 +0000 (19:11 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Jul 2006 18:16:26 +0000 (14:16 -0400)
commit522536f6b24e63ac946259af65224f107dff7857
tree3bafc9a0dd35f4dfea0e74ca3b9fb3d65a006536
parent120bda20c6f64b32e8bfbdd7b34feafaa5f5332e
[PATCH] bcm43xx-softmac: Fix an off-by-one condition in handle_irq_noise

An assert statement near the start of handle_irq_noise in the softmac
version of bcm43xx_main.c is there to protect against out of bound
addressing using variable bcm->noisecalc.nr_samples. The arrays in
question have a dimension of 8, thus the value must be < 8.

Signed-Off-By: Larry.Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c