All of lore.kernel.org
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] bus/fslmc: fix err path in device iterator
@ 2019-07-17 15:55 Hemant Agrawal
  2019-07-17 16:08 ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Hemant Agrawal @ 2019-07-17 15:55 UTC (permalink / raw)
  To: dev, thomas

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(-)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index a2ed3bcc9..9e4146aba 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -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;
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] bus/fslmc: fix err path in device iterator
  2019-07-17 15:55 [dpdk-dev] [PATCH] bus/fslmc: fix err path in device iterator Hemant Agrawal
@ 2019-07-17 16:08 ` Thomas Monjalon
  2019-07-17 17:40   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2019-07-17 16:08 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: dev

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>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] bus/fslmc: fix err path in device iterator
  2019-07-17 16:08 ` Thomas Monjalon
@ 2019-07-17 17:40   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2019-07-17 17:40 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: dev, anatoly.burakov

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-17 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 15:55 [dpdk-dev] [PATCH] bus/fslmc: fix err path in device iterator Hemant Agrawal
2019-07-17 16:08 ` Thomas Monjalon
2019-07-17 17:40   ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.