]> git.baikalelectronics.ru Git - 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)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 3 Jun 2021 08:59:49 +0000 (10:59 +0200)
commitd1a849b5b001ea47e73ac7dc92fdd9959688c86f
tree99399de4a51e45bcbfd42f2717219dc4ed1a0f65
parentf1865ec7e62c3c95cdada9a98479e5bc8ff5f626
ieee802154: fix error return code in ieee802154_llsec_getparams()

Fix to return negative error code -ENOBUFS from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: dd8d2afa100f ("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>
net/ieee802154/nl-mac.c