diff options
| author | Dan Carpenter <error27@gmail.com> | 2010-09-16 04:12:55 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-09-17 01:38:23 -0400 |
| commit | 2507136f74f70a4869bd4f525d48715ae66db43d (patch) | |
| tree | a0dbb80d26c3c97935ddb549f2cab0d7c78aab3d | |
| parent | e443e383242839b0d72efce744b7ba31573b1f99 (diff) | |
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: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/llc/llc_station.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/llc/llc_station.c b/net/llc/llc_station.c index e4dae0244d76..cf4aea3ba30f 100644 --- a/net/llc/llc_station.c +++ b/net/llc/llc_station.c | |||
| @@ -689,7 +689,7 @@ static void llc_station_rcv(struct sk_buff *skb) | |||
| 689 | 689 | ||
| 690 | int __init llc_station_init(void) | 690 | int __init llc_station_init(void) |
| 691 | { | 691 | { |
| 692 | u16 rc = -ENOBUFS; | 692 | int rc = -ENOBUFS; |
| 693 | struct sk_buff *skb; | 693 | struct sk_buff *skb; |
| 694 | struct llc_station_state_ev *ev; | 694 | struct llc_station_state_ev *ev; |
| 695 | 695 | ||
