diff options
Diffstat (limited to 'net/sched/em_text.c')
| -rw-r--r-- | net/sched/em_text.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/net/sched/em_text.c b/net/sched/em_text.c index 763253257411..ea8f566e720c 100644 --- a/net/sched/em_text.c +++ b/net/sched/em_text.c | |||
| @@ -103,7 +103,8 @@ retry: | |||
| 103 | 103 | ||
| 104 | static void em_text_destroy(struct tcf_proto *tp, struct tcf_ematch *m) | 104 | static void em_text_destroy(struct tcf_proto *tp, struct tcf_ematch *m) | 
| 105 | { | 105 | { | 
| 106 | textsearch_destroy(EM_TEXT_PRIV(m)->config); | 106 | if (EM_TEXT_PRIV(m) && EM_TEXT_PRIV(m)->config) | 
| 107 | textsearch_destroy(EM_TEXT_PRIV(m)->config); | ||
| 107 | } | 108 | } | 
| 108 | 109 | ||
| 109 | static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m) | 110 | static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m) | 
