f = container_of(e, struct oz_tx_frame, link);
e = e->next;
if (f->skb != NULL)
- kfree_skb(f->skb);
+ dev_kfree_skb(f->skb);
oz_retire_frame(pd, f);
}
oz_elt_buf_term(&pd->elt_buff);
}
return skb;
fail:
- kfree_skb(skb);
+ dev_kfree_skb(skb);
return NULL;
}
/*------------------------------------------------------------------------------
pd->nb_queued_isoc_frames);
return 0;
} else {
- kfree_skb(skb);
+ dev_kfree_skb(skb);
oz_trace2(OZ_TRACE_TX_FRAMES, "Dropping ISOC Frame>\n");
oz_event_log(OZ_EVT_TX_ISOC_DROP, 0, 0, NULL, 0);
return -1;
skb->protocol = htons(OZ_ETHERTYPE);
if (dev_hard_header(skb, dev, OZ_ETHERTYPE, pd->mac_addr,
dev->dev_addr, skb->len) < 0) {
- kfree_skb(skb);
+ dev_kfree_skb(skb);
return -1;
}
oz_hdr = (struct oz_hdr *)skb_put(skb, total_size);
*/
static void oz_isoc_stream_free(struct oz_isoc_stream *st)
{
- kfree_skb(st->skb);
+ dev_kfree_skb(st->skb);
kfree(st);
}
/*------------------------------------------------------------------------------
}
out: oz_event_log(OZ_EVT_TX_ISOC_DROP, 0, 0, NULL, 0);
- kfree_skb(skb);
+ dev_kfree_skb(skb);
return -1;
}