ieee802154: 6lowpan_rtnl: fix correct errno value
authorAlexander Aring <alex.aring@gmail.com>
Tue, 19 Aug 2014 17:03:29 +0000 (19:03 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 Aug 2014 17:17:41 +0000 (19:17 +0200)
commitc4cb901ac667f81786b402ca7d69a9063e770b3a
tree19284e5c3d84114c412f810cec3c1d6b6ca50b6e
parent7629d1eaf33672c9d35ba1e2ad12b459d56ca3b1
ieee802154: 6lowpan_rtnl: fix correct errno value

This patch correct the return value of lowpan_alloc_frag if an error
occur. Errno numbers should always be negative.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan_rtnl.c