Skip to content

Commit

Permalink
[PATCH] ipw2200: fix a potential NULL pointer dereference
Browse files Browse the repository at this point in the history
Only on CONFIG_IPW2200_DEBUG is not defined

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Mar 17, 2006
1 parent f697014 commit 85149ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -7809,12 +7809,10 @@ static void ipw_rx(struct ipw_priv *priv)

while (i != r) {
rxb = priv->rxq->queue[i];
#ifdef CONFIG_IPW2200_DEBUG
if (unlikely(rxb == NULL)) {
printk(KERN_CRIT "Queue not allocated!\n");
break;
}
#endif
priv->rxq->queue[i] = NULL;

pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr,
Expand Down

0 comments on commit 85149ba

Please sign in to comment.