Skip to content
Snippets Groups Projects
Commit 2507136f authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net/llc: storing negative error codes in unsigned short


If the alloc_skb() fails then we return 65431 instead of -ENOBUFS
(-105).

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e443e383
No related merge requests found
...@@ -689,7 +689,7 @@ static void llc_station_rcv(struct sk_buff *skb) ...@@ -689,7 +689,7 @@ static void llc_station_rcv(struct sk_buff *skb)
int __init llc_station_init(void) int __init llc_station_init(void)
{ {
u16 rc = -ENOBUFS; int rc = -ENOBUFS;
struct sk_buff *skb; struct sk_buff *skb;
struct llc_station_state_ev *ev; struct llc_station_state_ev *ev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment