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:
63985c5
)
pci: initialize generic driver pointer
author
Alexey Kardashevskiy
<aik@ozlabs.ru>
Wed, 26 Apr 2017 08:07:24 +0000
(18:07 +1000)
committer
Thomas Monjalon
<thomas@monjalon.net>
Sun, 30 Apr 2017 13:28:01 +0000
(15:28 +0200)
The existing code initializes a PCI driver pointer but not the common one.
As the result, ring_dma_zone_reserve() in drivers/net/bnx2x/bnx2x_rxtx.c
crashed as dev->device->driver==NULL.
This adds missing initialization.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
lib/librte_eal/common/eal_common_pci.c
patch
|
blob
|
history
diff --git
a/lib/librte_eal/common/eal_common_pci.c
b/lib/librte_eal/common/eal_common_pci.c
index
6f0d4d8
..
b6b41be
100644
(file)
--- a/
lib/librte_eal/common/eal_common_pci.c
+++ b/
lib/librte_eal/common/eal_common_pci.c
@@
-244,6
+244,7
@@
rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr,
/* reference driver structure */
dev->driver = dr;
+ dev->device.driver = &dr->driver;
/* call the driver probe() function */
ret = dr->probe(dr, dev);