diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-07 01:12:56 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-08 11:56:40 -0800 |
commit | 62765d39553cfd1ad340124fe1e280450e8c89e2 (patch) | |
tree | c94b7c77cecc7e0300a9a5bb0f26fc717e609b00 /net/dsa/slave.c | |
parent | 143c253f42bad20357e7e4432087aca747c43384 (diff) |
net: wan: fix error return code of uhdlc_init()
When priv->rx_skbuff or priv->tx_skbuff is NULL, no error return code of
uhdlc_init() is assigned.
To fix this bug, ret is assigned with -ENOMEM in these cases.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
0 files changed, 0 insertions, 0 deletions