xfrm: Return dst directly from xfrm_lookup()
Instead of on the stack. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -101,7 +101,8 @@ static void send_reset(struct net *net, struct sk_buff *oldskb)
|
||||
dst_release(dst);
|
||||
return;
|
||||
}
|
||||
if (xfrm_lookup(net, &dst, &fl, NULL, 0))
|
||||
dst = xfrm_lookup(net, dst, &fl, NULL, 0);
|
||||
if (IS_ERR(dst))
|
||||
return;
|
||||
|
||||
hh_len = (dst->dev->hard_header_len + 15)&~15;
|
||||
|
Reference in New Issue
Block a user