Skip to content

Commit

Permalink
ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c
Browse files Browse the repository at this point in the history
This patch replaces the calls to alloc_skb with calls
to dev_alloc_skb.

dev_alloc_skb has GFP_ATOMIC priority so the
replacement does not change the code semantics.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Xenia Ragiadakou authored and Greg Kroah-Hartman committed May 30, 2013
1 parent 812eb99 commit c314796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ozwpan/ozproto.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void oz_send_conn_rsp(struct oz_pd *pd, u8 status)
struct oz_elt_connect_rsp *body;
int sz = sizeof(struct oz_hdr) + sizeof(struct oz_elt) +
sizeof(struct oz_elt_connect_rsp);
skb = alloc_skb(sz + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC);
skb = dev_alloc_skb(sz + OZ_ALLOCATED_SPACE(dev));
if (skb == NULL)
return;
skb_reserve(skb, LL_RESERVED_SPACE(dev));
Expand Down

0 comments on commit c314796

Please sign in to comment.