Skip to content

Commit

Permalink
net/llc: storing negative error codes in unsigned short
Browse files Browse the repository at this point in the history
If the alloc_skb() fails then we return 65431 instead of -ENOBUFS
(-105).

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
error27 authored and davem330 committed Sep 17, 2010
1 parent e443e38 commit 2507136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/llc/llc_station.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static void llc_station_rcv(struct sk_buff *skb)

int __init llc_station_init(void)
{
u16 rc = -ENOBUFS;
int rc = -ENOBUFS;
struct sk_buff *skb;
struct llc_station_state_ev *ev;

Expand Down

0 comments on commit 2507136

Please sign in to comment.