]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/eal_common_dev.c
test/mem: disable ASan when accessing unallocated memory
[dpdk.git] / lib / eal / common / eal_common_dev.c
index 148a23830ab5114680888f9443cb596d8e9d8858..c0ee4e442f4385a4da9eff182d07cc270cf72d59 100644 (file)
@@ -5,20 +5,15 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <inttypes.h>
 #include <sys/queue.h>
 
-#include <rte_compat.h>
 #include <rte_bus.h>
 #include <rte_class.h>
 #include <rte_dev.h>
 #include <rte_devargs.h>
-#include <rte_debug.h>
 #include <rte_errno.h>
-#include <rte_kvargs.h>
 #include <rte_log.h>
 #include <rte_spinlock.h>
-#include <rte_malloc.h>
 #include <rte_string_fns.h>
 
 #include "eal_private.h"
@@ -573,7 +568,7 @@ int
 rte_dev_iterator_init(struct rte_dev_iterator *it,
                      const char *dev_str)
 {
-       struct rte_devargs devargs;
+       struct rte_devargs devargs = { .bus = NULL };
        struct rte_class *cls = NULL;
        struct rte_bus *bus = NULL;