bus/dpaa: fix memory allocation during scan
authorShreyansh Jain <shreyansh.jain@nxp.com>
Tue, 10 Oct 2017 09:34:58 +0000 (15:04 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 10 Oct 2017 13:30:44 +0000 (15:30 +0200)
commit1459585888b5543286c808ffc2db8ea489dfac8c
tree548188b451b8e71cfbcb250e27926718ce683fe9
parent7a8889324654c9e39f9e18097ccc74d6ff2588cf
bus/dpaa: fix memory allocation during scan

With the IOVA auto detection changes, bus scan is performed before
memory initialization. DPAA bus scan must not use rte_malloc in
its path.

Fixes: cf408c22476c ("eal: auto detect IOVA mode")

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/dpaa/base/fman/fman.c
drivers/net/dpaa/dpaa_ethdev.c