]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ozwpan: replace kfree_skb with dev_kfree_skb in ozproto.c
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 21 May 2013 10:18:59 +0000 (13:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 17:54:45 +0000 (10:54 -0700)
This patch replaces the calls to kfree_skb with
calls to dev_kfree_skb.

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

index 83bbd4b449feb571f33a60db52a0af5d723947be..1a5845866b08f725703958b6d883669cd9d84a0e 100644 (file)
@@ -110,7 +110,7 @@ static void oz_send_conn_rsp(struct oz_pd *pd, u8 status)
        /* Fill in device header */
        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;
        }
        oz_hdr->control = (OZ_PROTOCOL_VERSION<<OZ_VERSION_SHIFT);