]> 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)
commit75f4bd6422c2789d0cf010b3c5c1d63bea8fd451
tree45e066bcda0c5509c70722b321936bae137a5ad8
parent43569b1acfb8f51602e95d15ac85490507d7046d
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: 41eb4a3c90fc ("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