]> git.proxmox.com Git - mirror_ubuntu-jammy-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 Bader <stefan.bader@canonical.com>
Mon, 28 Nov 2022 14:18:10 +0000 (15:18 +0100)
commit3bec740a372d281a23dc72669a08ab4898ecb519
tree5513691f1b8abc8afa6106d711817e065a55d9c4
parent7b69118e358f4453e28953f6c076829d9b87336c
net: ieee802154: fix error return code in dgram_bind()

BugLink: https://bugs.launchpad.net/bugs/1997981
commit 444d8ad4916edec8a9fc684e841287db9b1e999f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ieee802154/socket.c