ieee802154: 6lowpan: trivial checks at first
authorAlexander Aring <alex.aring@gmail.com>
Wed, 2 Sep 2015 12:21:23 +0000 (14:21 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Sep 2015 11:20:03 +0000 (13:20 +0200)
commit742c3afe53c5d16fa62632c34f8e2273766d3052
tree5e4fb120b7ceaeabe7ab0955f8e6e0a90aca0c3c
parentad23d5b9da399c0ecbe58e16c6603c3fcdcafdbd
ieee802154: 6lowpan: trivial checks at first

This patch moves some trivial checks at first before calling
skb_share_check which could do some memcpy if the buffer is shared.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/rx.c