xfrm: Initialize the struct xfrm_dst behind the dst_enty field
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 5 Jul 2012 23:39:34 +0000 (23:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Jul 2012 07:29:12 +0000 (00:29 -0700)
commit141e369de698f2e17bf716b83fcc647ddcb2220c
tree0945d0d7baa1cedc2e2d2dd00d98102c34f67b6d
parent8104891b86b212de77063660c0c062b427526fa6
xfrm: Initialize the struct xfrm_dst behind the dst_enty field

We start initializing the struct xfrm_dst at the first field
behind the struct dst_enty. This is error prone because it
might leave a new field uninitialized. So start initializing
the struct xfrm_dst right behind the dst_entry.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c