git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fcd4e5
)
ethdev: fix callback unregister with wildcard argument list
author
Ricardo Roldan
<rroldan@bequant.com>
Tue, 7 Jan 2020 15:51:36 +0000
(16:51 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000
(19:46 +0100)
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
patch
|
blob
|
history
diff --git
a/lib/librte_ethdev/rte_ethdev.c
b/lib/librte_ethdev/rte_ethdev.c
index
6e9cb24
..
aec2d0f
100644
(file)
--- a/
lib/librte_ethdev/rte_ethdev.c
+++ b/
lib/librte_ethdev/rte_ethdev.c
@@
-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;
/*