]> 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)
commit5ffe9e123ae2dbab1fc16aba1271002809673261
tree534fb338375a56f3dfeb3066a6e7f85c3017866e
parentd4f2098f859335b41be2902dd8623dec46cf1bfb
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