ipv4: Compute net once in ip_forward
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Sep 2015 01:03:54 +0000 (20:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 00:18:33 +0000 (17:18 -0700)
commitfcad0ac2da05d5ed443acee7abd69e24e69037ca
tree98e34fa41688a2ddcc8d3efa44b606923c741fb3
parent5a70649e0dae02ba5090540fffce667d2300bc5a
ipv4: Compute net once in ip_forward

Compute struct net from the input device in ip_forward before it is
used.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_forward.c