Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=30ddb159ff3c632fdad3c0abc2e7d586a59bc5d1 Commit: 30ddb159ff3c632fdad3c0abc2e7d586a59bc5d1 Parent: 25f666300625d894ebe04bac2b4b3aadb907c861 Author: David S. Miller <[EMAIL PROTECTED]> AuthorDate: Sun Feb 10 03:48:15 2008 -0800 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Sun Feb 10 03:48:15 2008 -0800
[PKT_SCHED] ematch: Fix build warning. Commit 954415e33ed6cfa932c13e8c2460bd05e50723b5 ("[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: David S. Miller <[EMAIL PROTECTED]> --- net/sched/ematch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/ematch.c b/net/sched/ematch.c index b29439d..5e6f82e 100644 --- a/net/sched/ematch.c +++ b/net/sched/ematch.c @@ -410,7 +410,7 @@ void tcf_em_tree_destroy(struct tcf_proto *tp, struct tcf_ematch_tree *tree) if (em->ops->destroy) em->ops->destroy(tp, em); else if (!tcf_em_is_simple(em)) - kfree(em->data); + kfree((void *) em->data); module_put(em->ops->owner); } } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html