[RESEND PATCH 1/2] power: max8925: Fix NULL ptr dereference on memory allocation failure

2014-09-09 Thread Krzysztof Kozlowski
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 --- drivers/power/max8925_power.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[RESEND PATCH 1/2] power: max8925: Fix NULL ptr dereference on memory allocation failure

2014-09-09 Thread Krzysztof Kozlowski
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 k.kozlow...@samsung.com --- drivers/power/max8925_power.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[RESEND PATCH 1/2] power: max8925: Fix NULL ptr dereference on memory allocation failure

2014-05-26 Thread Krzysztof Kozlowski
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 --- drivers/power/max8925_power.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[RESEND PATCH 1/2] power: max8925: Fix NULL ptr dereference on memory allocation failure

2014-05-26 Thread Krzysztof Kozlowski
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 k.kozlow...@samsung.com --- drivers/power/max8925_power.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)