aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch')
-rw-r--r--target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch b/target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch
index 5724367c1f..1caf1ef59c 100644
--- a/target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch
+++ b/target/linux/generic/patches-3.10/616-net_optimize_xfrm_calls.patch
@@ -4,7 +4,7 @@
struct dst_entry *dst;
int err;
-+ if (!dev_net(skb->dev)->xfrm.policy_count[XFRM_POLICY_OUT])
++ if (skb->dev && !dev_net(skb->dev)->xfrm.policy_count[XFRM_POLICY_OUT])
+ return 0;
+
err = xfrm_decode_session(skb, &fl, family);