linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Vyacheslav V. Yurkov" <uvv.mail@gmail.com>
To: Alan Tull <atull@kernel.org>
Cc: Moritz Fischer <mdf@kernel.org>,
	linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org,
	Vyacheslav Yurkov <uvv.mail@gmail.com>
Subject: [PATCH 1/1] fpga: region: release bridges in successful path
Date: Wed, 27 Sep 2017 18:43:00 +0200	[thread overview]
Message-ID: <20170927164300.3487-1-uvv.mail@gmail.com> (raw)

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

             reply	other threads:[~2017-09-27 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27 16:43 Vyacheslav V. Yurkov [this message]
2017-09-27 18:48 ` [PATCH 1/1] fpga: region: release bridges in successful path Alan Tull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170927164300.3487-1-uvv.mail@gmail.com \
    --to=uvv.mail@gmail.com \
    --cc=atull@kernel.org \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mdf@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).