mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
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 <truong@codeaurora.org> Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
06424dff8c
commit
82b36ba3cb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user