From: Krzysztof Kozlowski Date: Tue, 16 Sep 2014 16:10:40 +0000 (+0200) Subject: power: max8925: Fix NULL ptr dereference on memory allocation failure X-Git-Tag: omap-for-v3.19/prcm-cleanup~67^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920ac5be91bc447c5ef82f457207a169aa79c5f6;p=pandora-kernel.git power: max8925: Fix NULL ptr dereference on memory allocation failure Check the return value of devm_kzalloc() to fix possible NULL pointer dereference and properly exit the probe() on memory allocation failure. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed