|
@@ -103,7 +103,8 @@ retry:
|
|
|
|
|
|
static void em_text_destroy(struct tcf_proto *tp, struct tcf_ematch *m)
|
|
static void em_text_destroy(struct tcf_proto *tp, struct tcf_ematch *m)
|
|
{
|
|
{
|
|
- textsearch_destroy(EM_TEXT_PRIV(m)->config);
|
|
|
|
|
|
+ if (EM_TEXT_PRIV(m) && EM_TEXT_PRIV(m)->config)
|
|
|
|
+ textsearch_destroy(EM_TEXT_PRIV(m)->config);
|
|
}
|
|
}
|
|
|
|
|
|
static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m)
|
|
static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m)
|