mirror of https://github.com/hak5/openwrt.git
kernel: add missing check for skb->dev on netfilter xfrm optimization patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43567lede-17.01
parent
14a163ca58
commit
0cebaafa6e
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue