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