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: af75078fec
("first public release")
Cc: stable@dpdk.org
Signed-off-by: Ricardo Roldan <rroldan@bequant.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
7fcd4e55d9
commit
ba1e69f121
@ -4039,7 +4039,7 @@ rte_eth_dev_callback_unregister(uint16_t port_id,
|
||||
next = TAILQ_NEXT(cb, next);
|
||||
|
||||
if (cb->cb_fn != cb_fn || cb->event != event ||
|
||||
(cb->cb_arg != (void *)-1 && cb->cb_arg != cb_arg))
|
||||
(cb_arg != (void *)-1 && cb->cb_arg != cb_arg))
|
||||
continue;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user