diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-11-18 08:00:56 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-11-18 08:00:56 +0100 |
commit | 1ad6ec25d566c8e1c8fe2f16d265f8f0cafdc76a (patch) | |
tree | be755194771c47f263f9162b00365fa19d16ada2 /kernel/net/sched/em_ipset.c | |
parent | 920ddfa09efbd72a0fe43251cd19bc2c27aa3662 (diff) |
styles warned by checkpatch.pl fixed
Diffstat (limited to 'kernel/net/sched/em_ipset.c')
-rw-r--r-- | kernel/net/sched/em_ipset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/net/sched/em_ipset.c b/kernel/net/sched/em_ipset.c index 2729d7e..53185d5 100644 --- a/kernel/net/sched/em_ipset.c +++ b/kernel/net/sched/em_ipset.c @@ -57,6 +57,7 @@ static void em_ipset_destroy(struct tcf_proto *p, struct tcf_ematch *em) #endif { const struct xt_set_info *set = (const void *) em->data; + if (set) { #ifdef HAVE_TCF_EMATCH_STRUCT_NET ip_set_nfnl_put(em->net, set->index); @@ -87,7 +88,9 @@ static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em, acpar.family = NFPROTO_IPV6; if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr))) return 0; - /* doesn't call ipv6_find_hdr() because ipset doesn't use thoff, yet */ + /* doesn't call ipv6_find_hdr() because ipset doesn't use + * thoff, yet + */ acpar.thoff = sizeof(struct ipv6hdr); break; default: |