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)
commit444d8ad4916edec8a9fc684e841287db9b1e999f
treedcd8ddd6226586f4de50cc6ed3ca65a8f8f6748c
parent68fe1db04443cee58ddbeae9c506f7262b256168
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: 94160108a70c ("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