]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ieee802154: fix error return code in ieee802154_llsec_getparams()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 19 May 2021 14:16:14 +0000 (14:16 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:18 +0000 (19:23 +0200)
commitef00eb232b4f69ace7c9b442783ab0e1650da3f7
tree54fe5a52687d070200d234a66f262526eecc8e21
parent7c4a368ba3b192b6c4fe6df10be18b0042c4e46a
ieee802154: fix error return code in ieee802154_llsec_getparams()

BugLink: https://bugs.launchpad.net/bugs/1933691
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/ieee802154/nl-mac.c