]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: fix error return code in dgram_bind()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 19 Sep 2022 16:08:30 +0000 (16:08 +0000)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 7 Oct 2022 07:29:17 +0000 (09:29 +0200)
commit3e2b802c904629c2b0546eb538f15eaeccb91b24
treedcd8ddd6226586f4de50cc6ed3ca65a8f8f6748c
parent8621ba023d3f4e3bd215ecd83a0029c899387ad9
net: ieee802154: fix error return code in dgram_bind()

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

Fixes: 891afbcca1ec ("net/ieee802154: fix uninit value bug in dgram_sendmsg")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220919160830.1436109-1-weiyongjun@huaweicloud.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/socket.c