bus/fslmc: fix error handling in device iterator
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 17 Jul 2019 15:55:18 +0000 (21:25 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jul 2019 17:47:20 +0000 (19:47 +0200)
commit46418d25f79ed6c59a981798beeda652f079e3dd
tree7cc768484a06861df8e805d3d30d0e45db0b4a0d
parent135393d4560bcffaa3fe0b739d26591565a320a2
bus/fslmc: fix error handling in device iterator

When initializing EAL with "-w 0:0.0", this error is blocking:
munmap_chunk(): invalid pointer
ElectricFence reports this root cause:
free(7fffeec25a11): address not from malloc()

Fixes: e67a61614d0b ("bus/fslmc: support device iteration")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Thomas Monjalon <thomas@monjalon.net>
drivers/bus/fslmc/fslmc_bus.c