projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7629d1e
)
ieee802154: 6lowpan_rtnl: fix correct errno value
author
Alexander Aring
<alex.aring@gmail.com>
Tue, 19 Aug 2014 17:03:29 +0000
(19:03 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 19 Aug 2014 17:17:41 +0000
(19:17 +0200)
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
patch
|
blob
|
history
diff --git
a/net/ieee802154/6lowpan_rtnl.c
b/net/ieee802154/6lowpan_rtnl.c
index 016b77ee88f0e2f1394c0456f67e9e01ec190d9f..71fa7d42966cf5f34e4fb711ee5fc8211f19aa18 100644
(file)
--- a/
net/ieee802154/6lowpan_rtnl.c
+++ b/
net/ieee802154/6lowpan_rtnl.c
@@
-246,7
+246,7
@@
lowpan_alloc_frag(struct sk_buff *skb, int size,
return ERR_PTR(-rc);
}
} else {
- frag = ERR_PTR(ENOMEM);
+ frag = ERR_PTR(
-
ENOMEM);
}
return frag;