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)
commit6dbf02acef69b0742c238574583b3068afbd227c
tree45e066bcda0c5509c70722b321936bae137a5ad8
parent3d61a39defb923d4ebbddab5577dd6403b7be800
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: fdf5fd397566 ("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