]> git.baikalelectronics.ru Git - kernel.git/commit
net: qrtr: send msgs from local of same id as broadcast
authorWang Wenhu <wenhu.wang@vivo.com>
Thu, 9 Apr 2020 02:53:53 +0000 (19:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2020 17:08:31 +0000 (10:08 -0700)
commit9261006e9434591fca75c8fbd5dea237649db804
tree45e066bcda0c5509c70722b321936bae137a5ad8
parent07407483478337305e411da80b28674f7defe2f0
net: qrtr: send msgs from local of same id as broadcast

If the local node id(qrtr_local_nid) is not modified after its
initialization, it equals to the broadcast node id(QRTR_NODE_BCAST).
So the messages from local node should not be taken as broadcast
and keep the process going to send them out anyway.

The definitions are as follow:
static unsigned int qrtr_local_nid = NUMA_NO_NODE;

Fixes: e0465a2b38a4 ("net: qrtr: Broadcast messages only from control port")
Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c