]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mpls: Use nlmsg_payload in mpls_valid_fib_dump_req
authorBreno Leitao <leitao@debian.org>
Mon, 14 Apr 2025 13:24:11 +0000 (06:24 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:28:54 +0000 (08:28 -0700)
commit72be72bea9dc8641c9f39c0335b71b9fbea0fae5
tree553d80e39fad62b56338bd871b26f03b4b065c39
parent77d02290366f058dce2555468a48ed8d62d95939
mpls: Use nlmsg_payload in mpls_valid_fib_dump_req

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-5-3d90cb42c6af@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mpls/af_mpls.c