Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85149bac authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville
Browse files

[PATCH] ipw2200: fix a potential NULL pointer dereference



Only on CONFIG_IPW2200_DEBUG is not defined

Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f697014a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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,