]> git.proxmox.com Git - mirror_ubuntu-focal-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>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit9308472d22f997a756c649f5c6f39a469244f1d1
treef25631ecd63a3aee00866f4d58b4ec247258e369
parent7c84cbd8b5c377420ac592b553e7e6d7411b2569
net: qrtr: send msgs from local of same id as broadcast

BugLink: https://bugs.launchpad.net/bugs/1874111
[ 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: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/qrtr/qrtr.c