rtnetlink: Move ifm in valid_fdb_dump_legacy to closer to use
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 20:57:24 +0000 (13:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:24:33 +0000 (22:24 -0700)
commit4565d7e5a300fcc3a41d40dbcf7ff9d1fe316814
treec05c60ccb86c698b857443d25364b553992ff894
parent66077060f82a69e8dde0262a20a37622a6e1af8c
rtnetlink: Move ifm in valid_fdb_dump_legacy to closer to use

Move setting of local variable ifm to after the message parsing in
valid_fdb_dump_legacy. Avoid potential future use of unchecked variable.

Fixes: 8dfbda19a21b ("rtnetlink: Move input checking for rtnl_fdb_dump to helper")
Reported-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c