]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc/tegra: pmc: Avoid usage of uninitialized variable
authorThierry Reding <treding@nvidia.com>
Thu, 9 Jul 2015 07:59:55 +0000 (09:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:05:43 +0000 (10:05 -0700)
commit72cdf324731e08faebd16a6a281872f6f7d8fcb2
tree2fa0cb8927b9bf2fbbfcf01f28f6d99a20ccbc88
parente4b09a61e9b1eb200f300cdc21d146dbdc4014ca
soc/tegra: pmc: Avoid usage of uninitialized variable

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