From 920ac5be91bc447c5ef82f457207a169aa79c5f6 Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Tue, 16 Sep 2014 18:10:40 +0200 Subject: [PATCH] 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-format-patch failed