net: Make dst_alloc() take more explicit initializations.
Now the dst->dev, dev->obsolete, and dst->flags values can be specified as well. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -1348,7 +1348,7 @@ static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family)
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
xdst = dst_alloc(dst_ops, 0);
|
||||
xdst = dst_alloc(dst_ops, NULL, 0, 0, 0);
|
||||
xfrm_policy_put_afinfo(afinfo);
|
||||
|
||||
if (likely(xdst))
|
||||
|
Reference in New Issue
Block a user