Re: [PATCH 1/1] pinctrl: sunxi: Fix potential null pointer dereference

From: Maxime Ripard
Date: Mon Jun 02 2014 - 05:40:11 EST


On Fri, May 30, 2014 at 03:50:52PM +0530, Sachin Kamat wrote:
> kzalloc can fail. Add a null check to avoid null pointer
> dereference error while accessing the pointer later.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>

Acked-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx>

Thanks!
Maxime

--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Attachment: signature.asc
Description: Digital signature