WSL2-Linux-Kernel/net/qrtr
Sarannya S dc26b67704 net: qrtr: ns: Return 0 if server port is not present
[ Upstream commit 9bf2e9165f90dc9f416af53c902be7e33930f728 ]

When a 'DEL_CLIENT' message is received from the remote, the corresponding
server port gets deleted. A DEL_SERVER message is then announced for this
server. As part of handling the subsequent DEL_SERVER message, the name-
server attempts to delete the server port which results in a '-ENOENT' error.
The return value from server_del() is then propagated back to qrtr_ns_worker,
causing excessive error prints.
To address this, return 0 from control_cmd_del_server() without checking the
return value of server_del(), since the above scenario is not an error case
and hence server_del() doesn't have any other error return value.

Signed-off-by: Sarannya Sasikumar <quic_sarannya@quicinc.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:52:30 -08:00
..
Kconfig
Makefile net: qrtr: combine nameservice into main module 2023-04-13 16:48:17 +02:00
af_qrtr.c net: qrtr: Fix an uninit variable access bug in qrtr_tx_resume() 2023-04-20 12:13:53 +02:00
mhi.c net: qrtr: start MHI channel after endpoit creation 2022-08-25 11:40:29 +02:00
ns.c net: qrtr: ns: Return 0 if server port is not present 2024-01-25 14:52:30 -08:00
qrtr.h
smd.c
tun.c