ethdev: fix callback unregister with wildcard argument list
authorRicardo Roldan <rroldan@bequant.com>
Tue, 7 Jan 2020 15:51:36 +0000 (16:51 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000 (19:46 +0100)
commitba1e69f121b97b4c8673a48c98072accdbc5af46
tree4abb7f41902d690ca7193a79f2e88cd2dc7ce6d9
parent7fcd4e55d9939a29636db1c35ee9864c10debf61
ethdev: fix callback unregister with wildcard argument list

The function was checking -1 against the callback data instead of
the given cb_arg parameter.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Ricardo Roldan <rroldan@bequant.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev.c