Revert "ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2013 23:02:46 +0000 (16:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2013 23:02:46 +0000 (16:02 -0700)
This reverts commit c3147965384f1a5ace685dc34e78f9bb201f357d.

I shouldn't have applied it, my fault.

Cc: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozproto.c

index 83bbd4b449feb571f33a60db52a0af5d723947be..3badf1537adb344deb47c868608d6a91230c9659 100644 (file)
@@ -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 = dev_alloc_skb(sz + OZ_ALLOCATED_SPACE(dev));
+       skb = alloc_skb(sz + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC);
        if (skb == NULL)
                return;
        skb_reserve(skb, LL_RESERVED_SPACE(dev));