Stefan Weil 8353584eae OMAP: PM: SmartReflex: Fix possible null pointer read access
These errors were found by cppcheck:
arch/arm/mach-omap2/smartreflex.c:784: error: Possible null pointer dereference: sr_info
arch/arm/mach-omap2/smartreflex.c:799: error: Possible null pointer dereference: sr_info

Both conditional statements are executed when sr_info == NULL,
so accessing sr_info->voltdm would fail.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Hilman <khilman@ti.com>
2011-01-31 12:59:15 -08:00
..
2011-01-13 17:18:27 +01:00
2011-01-13 17:18:48 +01:00
2011-01-13 17:18:57 +01:00
2011-01-05 18:09:03 +00:00
2011-01-13 13:35:31 +09:00
2010-12-12 23:31:02 +00:00
2011-01-06 22:32:52 +00:00
2011-01-06 22:32:52 +00:00