net: qrtr: ns: Fix error return code in qrtr_ns_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 19 May 2021 15:58:52 +0000 (15:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 20:14:35 +0000 (13:14 -0700)
commita49e72b3bda73d36664a084e47da9727a31b8095
tree3a34e344da957775981f1dfeb5a21d1d90983100
parent20e76d3d044d936998617f8acd7e77bebd9ca703
net: qrtr: ns: Fix error return code in qrtr_ns_init()

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

Fixes: c6e08d6251f3 ("net: qrtr: Allocate workqueue before kernel_bind")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/ns.c