git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: report duplicate device event callback
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_dev.c
diff --git
a/lib/librte_eal/common/eal_common_dev.c
b/lib/librte_eal/common/eal_common_dev.c
index
d990bfd
..
8a3bd31
100644
(file)
--- a/
lib/librte_eal/common/eal_common_dev.c
+++ b/
lib/librte_eal/common/eal_common_dev.c
@@
-480,7
+480,9
@@
rte_dev_event_callback_register(const char *device_name,
RTE_LOG(ERR, EAL,
"The callback is already exist, no need "
"to register again.\n");
+ event_cb = NULL;
ret = -EEXIST;
+ goto error;
}
rte_spinlock_unlock(&dev_event_lock);