]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 14 May 2020 08:53:51 +0000 (10:53 +0200)
commit45c8cc76081e053672a575476b7d978bcb77c4fd
treed742665165dd01c875ae0d5e4078219a64797a61
parent40a60e4e9b0fbf4137ce36444a3e55bc5cb83b11
net: qrtr: send msgs from local of same id as broadcast

BugLink: https://bugs.launchpad.net/bugs/1875506
[ Upstream commit 6dbf02acef69b0742c238574583b3068afbd227c ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/qrtr/qrtr.c