Commit c4cb901a authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

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: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7629d1ea
...@@ -246,7 +246,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size, ...@@ -246,7 +246,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
return ERR_PTR(-rc); return ERR_PTR(-rc);
} }
} else { } else {
frag = ERR_PTR(ENOMEM); frag = ERR_PTR(-ENOMEM);
} }
return frag; return frag;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment