From: Xenia Ragiadakou Date: Thu, 23 May 2013 17:51:57 +0000 (+0300) Subject: ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3147965384f1a5ace685dc34e78f9bb201f357d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index 3badf1537adb..83bbd4b449fe 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -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));