]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:04:47 +0000 (09:04 +0200)
commit09034bfafc29dbef6522bffb28e7f209e2584d25
tree2646269fac884b5c4d1d6a96b2c724cb184ec001
parent8150916acfd1c90a0bb0a8d45e4220b49ce026e3
net: qrtr: send msgs from local of same id as broadcast

[ Upstream commit 9261006e9434591fca75c8fbd5dea237649db804 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/qrtr/qrtr.c