Commit eab81466 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller
Browse files

drivers: atm: nicstar: Use the correct function to free some resources

In 'get_scq', 'dma_alloc_coherent' has been used to allocate some
resources, so we need to free them using 'dma_free_coherent' instead
of 'kfree'.
Signed-off-by: default avatarChristophe JAILLET <>
Signed-off-by: default avatarDavid S. Miller <>
parent 731e6f00
......@@ -874,7 +874,8 @@ static scq_info *get_scq(ns_dev *card, int size, u32 scd)
scq->skb = kmalloc(sizeof(struct sk_buff *) *
if (!scq->skb) {
2 * size, scq->org, scq->dma);
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment