• Stefan Weil's avatar
    OMAP: PM: SmartReflex: Fix possible null pointer read access · 8353584e
    Stefan Weil authored
    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: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
    8353584e
smartreflex.c 27.5 KB