linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] fpga: region: release bridges in successful path
@ 2017-09-27 16:43 Vyacheslav V. Yurkov
  2017-09-27 18:48 ` Alan Tull
  0 siblings, 1 reply; 2+ messages in thread
From: Vyacheslav V. Yurkov @ 2017-09-27 16:43 UTC (permalink / raw)
  To: Alan Tull; +Cc: Moritz Fischer, linux-fpga, linux-kernel, Vyacheslav Yurkov

From: Vyacheslav Yurkov <uvv.mail@gmail.com>

In case of successful FPGA reconfiguration bridges mutexes are not
unlocked properly.

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
---
 drivers/fpga/fpga-region.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/fpga/fpga-region.c b/drivers/fpga/fpga-region.c
index d9ab7c7..ed858e3 100644
--- a/drivers/fpga/fpga-region.c
+++ b/drivers/fpga/fpga-region.c
@@ -274,6 +274,7 @@ static int fpga_region_program_fpga(struct fpga_region *region,
 	}
 
 	fpga_mgr_put(mgr);
+	fpga_bridges_put(&region->bridge_list);
 	fpga_region_put(region);
 
 	return 0;
-- 
2.7.4

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

end of thread, other threads:[~2017-09-27 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-27 16:43 [PATCH 1/1] fpga: region: release bridges in successful path Vyacheslav V. Yurkov
2017-09-27 18:48 ` Alan Tull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).