summaryrefslogtreecommitdiff
path: root/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-06 09:00:52 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2014-10-25 05:56:22 (GMT)
commitc0bffc7ddc1383d20efa5c1a36b81e2df48cf65c (patch)
tree3ba142be6dfac705c24f970a04d13dfde44b254f /net/ieee802154
parentf870b8c6314c85712ff1e82765a902d895b73f21 (diff)
downloadlinux-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.tar.xz
ieee802154: 6lowpan: fix sign of errno return val
This patch fix ERR_PTR(-rc) to ERR_PTR(rc). The variable rc is already a negative errno value. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan_rtnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c
index 2d547ea..c7e07b8 100644
--- a/net/ieee802154/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan_rtnl.c
@@ -233,7 +233,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
&master_hdr->source, size);
if (rc < 0) {
kfree_skb(frag);
- return ERR_PTR(-rc);
+ return ERR_PTR(rc);
}
} else {
frag = ERR_PTR(-ENOMEM);