6LoWPAN: fix skb_copy call
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Thu, 1 Sep 2011 03:55:15 +0000 (03:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:36:35 +0000 (15:36 -0400)
commitdcef1151804257684f65c779fc1c19836ee0196a
treee0371cd545ecc0afa191249aab06db64e2e0742b
parentfa3df928e0878350ab0ddd1453bb85b056c726da
6LoWPAN: fix skb_copy call

This patch fixes 2 issues in lowpan_skb_deliver function:
1. Check for return status of skb_copy call;
2. Use skb_copy with proper GFP flag, drop check for non-interrupt
context.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c