linux/arch/arm/mach-omap2
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-06 19:58:28 -08:00
2010-02-15 09:27:05 -08:00
2010-12-07 16:26:57 -08:00
2011-01-13 17:18:52 +01:00
2010-07-05 16:31:36 +03:00
2010-07-05 16:31:36 +03:00
2011-01-06 19:58:28 -08:00
2011-01-06 22:32:52 +00:00
2010-12-21 14:30:40 -08:00
2010-12-21 20:01:54 -07:00
2010-12-17 15:13:44 -08:00
2011-01-06 19:58:28 -08:00