]> git.baikalelectronics.ru Git - kernel.git/commit
amt: fix return value of amt_update_handler()
authorTaehee Yoo <ap420073@gmail.com>
Mon, 23 May 2022 16:17:07 +0000 (16:17 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 May 2022 04:36:16 +0000 (21:36 -0700)
commite7b40d2f29967d710884d432e2cc0594235a82b6
treebd2b98b58da699afefa057e2758457bc6cb19bbb
parent726a59e94956fe874b3261e181ff41566daed8a0
amt: fix return value of amt_update_handler()

If a relay receives an update message, it lookup a tunnel.
and if there is no tunnel for that message, it should be treated
as an error, not a success.
But amt_update_handler() returns false, which means success.

Fixes: 19284cc854b3 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/amt.c