]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: eliminate KASAN warning
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 25 Oct 2017 14:19:52 +0000 (16:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 00:38:34 +0000 (09:38 +0900)
commite0b3d3ec4676615e6022d3efa8f75661c1132029
treecec14916009c021f240e2a3ce3f1654b56acc3de
parent2d301b290d90b4c77b28b65adca5786ab1963b5c
tipc: eliminate KASAN warning

The following warning was reported by syzbot on Oct 24. 2017:
KASAN: slab-out-of-bounds Read in tipc_nametbl_lookup_dst_nodes

This is a harmless bug, but we still want to get rid of the warning,
so we swap the two conditions in question.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c