amt: fix return value of amt_update_handler()

[ Upstream commit ac1dbf5598 ]

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: cbc21dc1cf ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Taehee Yoo 2022-05-23 16:17:07 +00:00 committed by Greg Kroah-Hartman
parent 61f26d00c0
commit ec6feb113a
1 changed files with 1 additions and 1 deletions

View File

@ -2423,7 +2423,7 @@ static bool amt_update_handler(struct amt_dev *amt, struct sk_buff *skb)
}
}
return false;
return true;
report:
iph = ip_hdr(skb);