Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753072AbbKLEDR (ORCPT ); Wed, 11 Nov 2015 23:03:17 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:29438 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752968AbbKLEDP (ORCPT ); Wed, 11 Nov 2015 23:03:15 -0500 X-AuditID: cbfec7f4-f79c56d0000012ee-37-56440f7f6d8d Subject: Re: [PATCH v4 2/9] ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf To: Pankaj Dubey , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> <1447155784-12667-3-git-send-email-pankaj.dubey@samsung.com> Cc: kgene.kim@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com, olof@lixom.net, khilman@linaro.org, arnd@arndb.de From: Krzysztof Kozlowski Message-id: <56440F7F.6090408@samsung.com> Date: Thu, 12 Nov 2015 13:03:11 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <1447155784-12667-3-git-send-email-pankaj.dubey@samsung.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsVy+t/xq7r1/C5hBlOOq1l8XP2SzeLvpGPs Fq9fGFr0LrjKZvH18ApGi02Pr7FaXN41h81ixvl9TBanrn9ms1i09Qu7RccyRgduj9+/JjF6 7Jx1l93jzrU9bB6bl9R7XDnRxOrRt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGW+/bWMsWMlS cfrCFPYGxlPMXYwcHBICJhJrX2t3MXICmWISF+6tZ+ti5OIQEljKKDH3zTJGCOcLo8TJxZ0s IFXCApkS279sB0uICExhlLjYA1LFCVTVzijx4FwMiM0sUCNx+tMVsDibgLHE5uVL2EC28Qpo SVy8VQcSZhFQleh528MEYosKREhMnNDACmLzCghK/Jh8D2wXp4CnxKaFT1lBWpkF9CTuX9SC mC4vsXnNW+YJjAKzkHTMQqiahaRqASPzKkbR1NLkguKk9FxDveLE3OLSvHS95PzcTYyQuPiy g3HxMatDjAIcjEo8vBNmOocJsSaWFVfmHmKU4GBWEuENmAcU4k1JrKxKLcqPLyrNSS0+xCjN waIkzjt31/sQIYH0xJLU7NTUgtQimCwTB6dUA6OVkN+emyaaP2NebzPmlf6+6r+8ecay3J2b nhlJ5ZTaTOTsf+P6fu2XdfYnJs2IdTjPuDjh7bGwk1ea/FOD9lzNvH5g2uyvKRXf7A+kXXy5 /TO7Q49xrlTnlBduF3p2ufvP3/U686Vl6waVi0+VU79UXpE+OiPx0a6Pz5WeybfoSCy9s5ZP yqRKiaU4I9FQi7moOBEAK7XXdocCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 21 On 10.11.2015 20:42, Pankaj Dubey wrote: > If no platform devices binded to the driver but driver itself loaded and > exynos_sys_powerdown_conf is called from > arch/arm/mach-exynos/{suspend.c, pm.c} it will result in NULL pointer access, > to prevent this added check on pmu_context for NULL. > > Signed-off-by: Pankaj Dubey > --- > arch/arm/mach-exynos/pmu.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/