OSDN Git Service
(root)
/
android-x86
/
kernel.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
016b77e
..
71fa7d4
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;