projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f870b8c
)
ieee802154: 6lowpan: fix sign of errno return val
author
Alexander Aring
<alex.aring@gmail.com>
Mon, 6 Oct 2014 09:00:52 +0000
(11:00 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:22 +0000
(07:56 +0200)
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>
net/ieee802154/6lowpan_rtnl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/6lowpan_rtnl.c
b/net/ieee802154/6lowpan_rtnl.c
index 2d547ea190e898c0c3bd956309f8ce0f9197ac4b..c7e07b8a8f9fad7ea4db75deb9cb5cbb6539682e 100644
(file)
--- 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);