diff --git a/drivers/net/wireless/bcm4329_204/linux_osl.c b/drivers/net/wireless/bcm4329_204/linux_osl.c index 9d5f19c5..25a6a14a 100644 --- a/drivers/net/wireless/bcm4329_204/linux_osl.c +++ b/drivers/net/wireless/bcm4329_204/linux_osl.c @@ -360,7 +360,8 @@ osl_pktfree_static(osl_t *osh, void *p, bool send) for (i = 0; i < MAX_STATIC_PKT_NUM*2; i++) { - if (p == bcm_static_skb->skb_4k[i]) + if ( (i < MAX_STATIC_PKT_NUM && p == bcm_static_skb->skb_4k[i]) || + (i >= MAX_STATIC_PKT_NUM && p == bcm_static_skb->skb_8k[i-MAX_STATIC_PKT_NUM]) ) { down(&bcm_static_skb->osl_pkt_sem); bcm_static_skb->pkt_use[i] = 0;