mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-25 17:53:34 -05:00
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>
This commit is contained in:
parent
e443e38324
commit
2507136f74
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue