Skip to content
Commit 444d8ad4 authored by Wei Yongjun's avatar Wei Yongjun Committed by Stefan Schmidt
Browse files

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: 94160108 ("net/ieee802154: fix uninit value bug in dgram_sendmsg")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220919160830.1436109-1-weiyongjun@huaweicloud.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 68fe1db0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment