]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: Do not memcmp() over pad bytes of struct flowi.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 12 Oct 2006 07:49:15 +0000 (00:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 12 Oct 2006 07:49:15 +0000 (00:49 -0700)
commit8238b218ec883adb44d710960a031c76105274cd
tree09880b229d0090298f30bf0168a4702bbc0e918a
parent42b6785eeb40fe3e9dab9981b6e3231a77c7c2f6
[NET]: Do not memcmp() over pad bytes of struct flowi.

They are not necessarily initialized to zero by the compiler,
for example when using run-time initializers of automatic
on-stack variables.

Noticed by Eric Dumazet and Patrick McHardy.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_route.c
net/ipv4/route.c