diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-05-19 17:16:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-10 14:39:19 +0300 |
commit | e513d889625b5d8c6c2942243cd7f967455d300a (patch) | |
tree | fe424af2ddc6a567672ac6d862f30a6a0a918215 /net/ieee802154/nl-phy.c | |
parent | 2a0ba0125c2c62566023882293face06046698a5 (diff) | |
download | linux-e513d889625b5d8c6c2942243cd7f967455d300a.tar.xz |
ieee802154: fix error return code in ieee802154_llsec_getparams()
[ Upstream commit 373e864cf52403b0974c2f23ca8faf9104234555 ]
Fix to return negative error code -ENOBUFS from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 3e9c156e2c21 ("ieee802154: add netlink interfaces for llsec")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210519141614.3040055-1-weiyongjun1@huawei.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ieee802154/nl-phy.c')
0 files changed, 0 insertions, 0 deletions