net: marvell: prestera: Fix return value check in prestera_kern_fib_cache_find()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 23 Feb 2022 08:49:54 +0000 (16:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Feb 2022 05:21:27 +0000 (21:21 -0800)
commit37f40f81e589839c17ed99a103bc1bc5f7343313
tree0efb854c144c0e7371b38b61e4fd6325ddacc401
parentd434ee9dee6dc75984897f183df773427a68a1ff
net: marvell: prestera: Fix return value check in prestera_kern_fib_cache_find()

rhashtable_lookup_fast() returns NULL pointer not ERR_PTR(), so
it can return fib_node directly in prestera_kern_fib_cache_find().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220223084954.1771075-2-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_router.c