net: s2io: simplify logical constraint
[deliverable/linux.git] / drivers / atm / nicstar.c
index ddc4ceb85fc560d4c0295f86e44f6a6e7457995b..700ed15c2362cfa0608900aaf49dff6a1ceef388 100644 (file)
@@ -874,7 +874,8 @@ static scq_info *get_scq(ns_dev *card, int size, u32 scd)
        scq->skb = kmalloc(sizeof(struct sk_buff *) *
                           (size / NS_SCQE_SIZE), GFP_KERNEL);
        if (!scq->skb) {
-               kfree(scq->org);
+               dma_free_coherent(&card->pcidev->dev,
+                                 2 * size, scq->org, scq->dma);
                kfree(scq);
                return NULL;
        }
This page took 0.048429 seconds and 5 git commands to generate.