mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 17:32:57 +00:00
kernel: add missing check for skb->dev on netfilter xfrm optimization patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43567
This commit is contained in:
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…
x
Reference in New Issue
Block a user