Commit 30ddb159 authored by David S. Miller's avatar David S. Miller

[PKT_SCHED] ematch: Fix build warning.

Commit 954415e3 ("[PKT_SCHED] ematch:
tcf_em_destroy robustness") removed a cast on em->data when
passing it to kfree(), but em->data is an integer type that can
hold pointers as well as other values so the cast is necessary.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25f66630
...@@ -410,7 +410,7 @@ void tcf_em_tree_destroy(struct tcf_proto *tp, struct tcf_ematch_tree *tree) ...@@ -410,7 +410,7 @@ void tcf_em_tree_destroy(struct tcf_proto *tp, struct tcf_ematch_tree *tree)
if (em->ops->destroy) if (em->ops->destroy)
em->ops->destroy(tp, em); em->ops->destroy(tp, em);
else if (!tcf_em_is_simple(em)) else if (!tcf_em_is_simple(em))
kfree(em->data); kfree((void *) em->data);
module_put(em->ops->owner); module_put(em->ops->owner);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment