[PATCH] ipw2200: fix a potential NULL pointer dereference
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>
This commit is contained in:
parent
f697014af9
commit
85149bace3
1 changed files with 0 additions and 2 deletions
|
@ -7809,12 +7809,10 @@ static void ipw_rx(struct ipw_priv *priv)
|
||||||
|
|
||||||
while (i != r) {
|
while (i != r) {
|
||||||
rxb = priv->rxq->queue[i];
|
rxb = priv->rxq->queue[i];
|
||||||
#ifdef CONFIG_IPW2200_DEBUG
|
|
||||||
if (unlikely(rxb == NULL)) {
|
if (unlikely(rxb == NULL)) {
|
||||||
printk(KERN_CRIT "Queue not allocated!\n");
|
printk(KERN_CRIT "Queue not allocated!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
priv->rxq->queue[i] = NULL;
|
priv->rxq->queue[i] = NULL;
|
||||||
|
|
||||||
pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr,
|
pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr,
|
||||||
|
|
Loading…
Reference in a new issue