]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix 'iph' use before set.
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 03:03:46 +0000 (23:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 03:03:46 +0000 (23:03 -0400)
commit0931083363dd9147a787d7140466ce7942bedc92
tree9f736a6ab5b61bb0fc053c4284282c2b19318529
parent30c6375f2c910c4ec9f3420a676157a6e3e7adc9
ipv4: Fix 'iph' use before set.

I swear none of my compilers warned about this, yet it is so
obvious.

> net/ipv4/ip_forward.c: In function 'ip_forward':
> net/ipv4/ip_forward.c:87: warning: 'iph' may be used uninitialized in this function

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_forward.c