From: Saurabh Sengar <saurabh.truth@gmail.com>
To: thierry.reding@gmail.com, tbergstrom@nvidia.com,
dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Saurabh Sengar <saurabh.truth@gmail.com>
Subject: [PATCH] gpu: host1x: mipi: Added missing mutex_unlock
Date: Mon, 7 Dec 2015 01:22:58 +0530 [thread overview]
Message-ID: <1449431578-6998-1-git-send-email-saurabh.truth@gmail.com> (raw)
In case of error too function should return after releasing the mutex
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
---
drivers/gpu/host1x/mipi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/host1x/mipi.c b/drivers/gpu/host1x/mipi.c
index 52a6fd2..6e559a9 100644
--- a/drivers/gpu/host1x/mipi.c
+++ b/drivers/gpu/host1x/mipi.c
@@ -250,6 +250,7 @@ struct tegra_mipi_device *tegra_mipi_request(struct device *device)
dev_err(dev->mipi->dev,
"failed to power up MIPI bricks: %d\n",
err);
+ mutex_unlock(&dev->mipi->lock);
return ERR_PTR(err);
}
}
--
1.9.1
reply other threads:[~2015-12-06 20:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1449431578-6998-1-git-send-email-saurabh.truth@gmail.com \
--to=saurabh.truth@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=tbergstrom@nvidia.com \
--cc=thierry.reding@gmail.com \
/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
all inboxes | Powered by JetHome®