From: Stefan Weil Date: Sun, 30 Jan 2011 19:29:38 +0000 (+0100) Subject: OMAP: PM: SmartReflex: Fix possible null pointer read access X-Git-Tag: v2.6.38-rc4~4^2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8353584eae4af8f37e5a23b63ed816c79185a9c9;p=pandora-kernel.git 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 Cc: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Stefan Weil Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed