summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2021-03-07 01:12:56 -0800
committerDavid S. Miller <davem@davemloft.net>2021-03-08 11:56:40 -0800
commit62765d39553cfd1ad340124fe1e280450e8c89e2 (patch)
treec94b7c77cecc7e0300a9a5bb0f26fc717e609b00 /net/dsa
parent143c253f42bad20357e7e4432087aca747c43384 (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')
0 files changed, 0 insertions, 0 deletions