Skip to content

Commit

Permalink
ozwpan: replace kfree_skb with dev_kfree_skb in ozpd.c
Browse files Browse the repository at this point in the history
This patch replaces the calls to kfree_skb with
calls to dev_kfree_skb.

Signed-off-by: Xenia Ragiadakou <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
elbeasto authored and gregkh committed May 21, 2013
1 parent edea341 commit e241a8b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/ozwpan/ozpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void oz_pd_destroy(struct oz_pd *pd)
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);
Expand Down Expand Up @@ -491,7 +491,7 @@ static struct sk_buff *oz_build_frame(struct oz_pd *pd, struct oz_tx_frame *f)
}
return skb;
fail:
kfree_skb(skb);
dev_kfree_skb(skb);
return NULL;
}
/*------------------------------------------------------------------------------
Expand Down Expand Up @@ -553,7 +553,7 @@ static int oz_send_next_queued_frame(struct oz_pd *pd, int more_data)
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;
Expand Down Expand Up @@ -645,7 +645,7 @@ static int oz_send_isoc_frame(struct oz_pd *pd)
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);
Expand Down Expand Up @@ -744,7 +744,7 @@ int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num)
*/
static void oz_isoc_stream_free(struct oz_isoc_stream *st)
{
kfree_skb(st->skb);
dev_kfree_skb(st->skb);
kfree(st);
}
/*------------------------------------------------------------------------------
Expand Down Expand Up @@ -880,7 +880,7 @@ int oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, const u8 *data, int len)
}

out: oz_event_log(OZ_EVT_TX_ISOC_DROP, 0, 0, NULL, 0);
kfree_skb(skb);
dev_kfree_skb(skb);
return -1;

}
Expand Down

0 comments on commit e241a8b

Please sign in to comment.