diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index f4bfd6c45651..58d5a746b1c3 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
@@ -19,7 +19,8 @@ | |||
19 | 19 | ||
20 | static int xfrm_state_check_space(struct xfrm_state *x, struct sk_buff *skb) | 20 | static int xfrm_state_check_space(struct xfrm_state *x, struct sk_buff *skb) |
21 | { | 21 | { |
22 | int nhead = x->props.header_len + LL_RESERVED_SPACE(skb->dst->dev) | 22 | struct dst_entry *dst = skb->dst; |
23 | int nhead = dst->header_len + LL_RESERVED_SPACE(dst->dev) | ||
23 | - skb_headroom(skb); | 24 | - skb_headroom(skb); |
24 | 25 | ||
25 | if (nhead > 0) | 26 | if (nhead > 0) |