From 82b36ba3cb54c194cdf1bbe79b2a2d9e556e780c Mon Sep 17 00:00:00 2001 From: Chris Lew Date: Mon, 3 Oct 2022 10:00:20 -0700 Subject: [PATCH] net: qrtr: ns: Remove check for spoofed messages In external soc usecases, it is possible to receive control messages for a node that is not the src node. The APPS on the external soc will forward control messages from the modem. Change-Id: Ibbf8f27fa64b18e387e40e655a13b5251190a00b Signed-off-by: Tony Truong Signed-off-by: Chris Lew --- net/qrtr/ns.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c index 3713fcc03c40..1384e31827a6 100644 --- a/net/qrtr/ns.c +++ b/net/qrtr/ns.c @@ -396,10 +396,6 @@ static int ctrl_cmd_del_client(struct sockaddr_qrtr *from, iv.iov_base = &pkt; iv.iov_len = sizeof(pkt); - /* Don't accept spoofed messages */ - if (from->sq_node != node_id) - return -EINVAL; - /* Local DEL_CLIENT messages comes from the port being closed */ if (from->sq_node == qrtr_ns.local_node && from->sq_port != port) return -EINVAL;