summaryrefslogtreecommitdiff
path: root/net/qrtr
diff options
context:
space:
mode:
authorSarannya S <quic_sarannya@quicinc.com>2023-12-21 15:36:51 +0530
committerDavid S. Miller <davem@davemloft.net>2024-01-01 18:41:29 +0000
commit9bf2e9165f90dc9f416af53c902be7e33930f728 (patch)
treee5bc4cc91d7111b8d30e96660313235fc138984f /net/qrtr
parent82585d5e2af13608dd18fe2458126cd82e2cc255 (diff)
net: qrtr: ns: Return 0 if server port is not present
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>
Diffstat (limited to 'net/qrtr')
-rw-r--r--net/qrtr/ns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c
index b1db0b519179..abb0c70ffc8b 100644
--- a/net/qrtr/ns.c
+++ b/net/qrtr/ns.c
@@ -512,7 +512,9 @@ static int ctrl_cmd_del_server(struct sockaddr_qrtr *from,
if (!node)
return -ENOENT;
- return server_del(node, port, true);
+ server_del(node, port, true);
+
+ return 0;
}
static int ctrl_cmd_new_lookup(struct sockaddr_qrtr *from,