projects
/
openwrt
/
staging
/
florian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kernel: add missing check for skb->dev on netfilter xfrm optimization patch
[openwrt/staging/florian.git]
/
target
/
linux
/
generic
/
patches-3.14
/
616-net_optimize_xfrm_calls.patch
diff --git
a/target/linux/generic/patches-3.14/616-net_optimize_xfrm_calls.patch
b/target/linux/generic/patches-3.14/616-net_optimize_xfrm_calls.patch
index a4e41573001671f0c640d1dc17761c2c4a395398..2a64d5420a4c7f17b674eca6d1b6671d265e4a0c 100644
(file)
--- a/
target/linux/generic/patches-3.14/616-net_optimize_xfrm_calls.patch
+++ b/
target/linux/generic/patches-3.14/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);