]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: Move input checking for rtnl_fdb_dump to helper
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 03:16:43 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:39:05 +0000 (10:39 -0700)
commite4dbac6148c2d6155cdfea8d8219a850dc2bc9f4
tree534fb338375a56f3dfeb3066a6e7f85c3017866e
parent512674993a27ac01278e6ebf10c83cf0b8e9f8ed
rtnetlink: Move input checking for rtnl_fdb_dump to helper

Move the existing input checking for rtnl_fdb_dump into a helper,
valid_fdb_dump_legacy. This function will retain the current
logic that works around the 2 headers that userspace has been
allowed to send up to this point.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c