]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtnetlink: Use nlmsg_payload in valid_fdb_dump_strict
authorBreno Leitao <leitao@debian.org>
Mon, 14 Apr 2025 13:24:10 +0000 (06:24 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:28:54 +0000 (08:28 -0700)
commit77d02290366f058dce2555468a48ed8d62d95939
tree5233ec762e62359cc0a18ef53493d141360b77e7
parent2d1f827f0642261d5c955d3d30b5f997e06ce7a9
rtnetlink: Use nlmsg_payload in valid_fdb_dump_strict

Leverage the new nlmsg_payload() helper to avoid checking for message
size and then reading the nlmsg data.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250414-nlmsg-v2-4-3d90cb42c6af@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/rtnetlink.c