.. | .. |
---|
3444 | 3444 | dma_unmap_single(&priv->pci_dev->dev, |
---|
3445 | 3445 | rxq->pool[i].dma_addr, |
---|
3446 | 3446 | IPW_RX_BUF_SIZE, DMA_FROM_DEVICE); |
---|
3447 | | - dev_kfree_skb(rxq->pool[i].skb); |
---|
| 3447 | + dev_kfree_skb_irq(rxq->pool[i].skb); |
---|
3448 | 3448 | rxq->pool[i].skb = NULL; |
---|
3449 | 3449 | } |
---|
3450 | 3450 | list_add_tail(&rxq->pool[i].list, &rxq->rx_used); |
---|
.. | .. |
---|
11400 | 11400 | set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); |
---|
11401 | 11401 | |
---|
11402 | 11402 | /* With that information in place, we can now register the wiphy... */ |
---|
11403 | | - if (wiphy_register(wdev->wiphy)) |
---|
11404 | | - rc = -EIO; |
---|
| 11403 | + rc = wiphy_register(wdev->wiphy); |
---|
| 11404 | + if (rc) |
---|
| 11405 | + goto out; |
---|
| 11406 | + |
---|
| 11407 | + return 0; |
---|
11405 | 11408 | out: |
---|
| 11409 | + kfree(priv->ieee->a_band.channels); |
---|
| 11410 | + kfree(priv->ieee->bg_band.channels); |
---|
11406 | 11411 | return rc; |
---|
11407 | 11412 | } |
---|
11408 | 11413 | |
---|