From 8fb8a09db8c331c8c77c6a17ebe1926ccb08e7e6 Mon Sep 17 00:00:00 2001 From: Jon Benson Date: Tue, 28 Sep 2010 17:20:00 +1000 Subject: [PATCH] Wireless driver had a line trying to iterate past the end of an array. I just corrected it so it would build with optimizations. I have no idea what, if any, consequences there may be to this. --- drivers/net/wireless/bcm4329_204/linux_osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/bcm4329_204/linux_osl.c b/drivers/net/wireless/bcm4329_204/linux_osl.c index 9d5f19c5..5eb5c51b 100644 --- a/drivers/net/wireless/bcm4329_204/linux_osl.c +++ b/drivers/net/wireless/bcm4329_204/linux_osl.c @@ -358,7 +358,7 @@ osl_pktfree_static(osl_t *osh, void *p, bool send) { int i; - for (i = 0; i < MAX_STATIC_PKT_NUM*2; i++) + for (i = 0; i < MAX_STATIC_PKT_NUM; i++) { if (p == bcm_static_skb->skb_4k[i]) {