stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "soc/tegra: pmc: Avoid usage of uninitialized variable" has been added to the 4.1-stable tree
@ 2015-09-19  3:33 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2015-09-19  3:33 UTC (permalink / raw)
  To: treding, gregkh, mperttunen; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    soc/tegra: pmc: Avoid usage of uninitialized variable

to the 4.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-tegra-pmc-avoid-usage-of-uninitialized-variable.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 95169cd23bfa88003f8be06234dbd65f5737add0 Mon Sep 17 00:00:00 2001
From: Thierry Reding <treding@nvidia.com>
Date: Thu, 9 Jul 2015 09:59:55 +0200
Subject: soc/tegra: pmc: Avoid usage of uninitialized variable

From: Thierry Reding <treding@nvidia.com>

commit 95169cd23bfa88003f8be06234dbd65f5737add0 upstream.

Make sure to only drop the reference to the OF node after it's been
successfully obtained.

Fixes: 3568df3d31d6 ("soc: tegra: Add thermal reset (thermtrip) support to PMC")
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/soc/tegra/pmc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -732,12 +732,12 @@ void tegra_pmc_init_tsense_reset(struct
 	u32 value, checksum;
 
 	if (!pmc->soc->has_tsense_reset)
-		goto out;
+		return;
 
 	np = of_find_node_by_name(pmc->dev->of_node, "i2c-thermtrip");
 	if (!np) {
 		dev_warn(dev, "i2c-thermtrip node not found, %s.\n", disabled);
-		goto out;
+		return;
 	}
 
 	if (of_property_read_u32(np, "nvidia,i2c-controller-id", &ctrl_id)) {


Patches currently in stable-queue which might be from treding@nvidia.com are

queue-4.1/soc-tegra-pmc-avoid-usage-of-uninitialized-variable.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-19  4:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-19  3:33 Patch "soc/tegra: pmc: Avoid usage of uninitialized variable" has been added to the 4.1-stable tree gregkh

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