bus/fslmc: fix err path in device iterator
Checks
Commit Message
Fixes: e67a61614d0b ("bus/fslmc: support device iteration")
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
drivers/bus/fslmc/fslmc_bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
17/07/2019 17:55, Hemant Agrawal:
> Fixes: e67a61614d0b ("bus/fslmc: support device iteration")
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Thomas Monjalon <thomas@monjalon.net>
17/07/2019 18:08, Thomas Monjalon:
> 17/07/2019 17:55, Hemant Agrawal:
> > Fixes: e67a61614d0b ("bus/fslmc: support device iteration")
> >
> > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
>
> Tested-by: Thomas Monjalon <thomas@monjalon.net>
Applied, thanks
@@ -296,7 +296,7 @@ rte_fslmc_parse(const char *name, void *addr)
return 0;
err_out:
- if (sep)
+ if (!sep_exists && sep)
free(sep);
return -EINVAL;
}