[PATCH 1/3] ARM: tegra: Fix unchecked return value
Joseph Lo
josephl at nvidia.com
Fri Feb 22 01:24:25 EST 2013
From: Hiroshi Doyu <hdoyu at nvidia.com>
Check a return value for tegra_powergate_remove_clamping().
Signed-off-by: Hiroshi Doyu <hdoyu at nvidia.com>
Signed-off-by: Joseph Lo <josephl at nvidia.com>
---
arch/arm/mach-tegra/platsmp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c
index 2c6b3d5..4dfc75e 100644
--- a/arch/arm/mach-tegra/platsmp.c
+++ b/arch/arm/mach-tegra/platsmp.c
@@ -124,6 +124,9 @@ remove_clamps:
/* Remove I/O clamps. */
ret = tegra_powergate_remove_clamping(pwrgateid);
+ if (ret)
+ return ret;
+
udelay(10);
/* Clear flow controller CSR. */
--
1.8.1.1
More information about the linux-arm-kernel
mailing list