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)
commitf65163fed0e7dc3c79be4f96a8fe97fc89328b93
treecec14916009c021f240e2a3ce3f1654b56acc3de
parent56546e3b9f2284a750c9ca24617544ff5cf56af4
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