Commit 30ddb159ff3c632fdad3c0abc2e7d586a59bc5d1

Authored by David S. Miller
1 parent 25f6663006

[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 <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -410,7 +410,7 @@
410 410 if (em->ops->destroy)
411 411 em->ops->destroy(tp, em);
412 412 else if (!tcf_em_is_simple(em))
413   - kfree(em->data);
  413 + kfree((void *) em->data);
414 414 module_put(em->ops->owner);
415 415 }
416 416 }