Re: [PATCH] mfd: add null check before pointer dereference

From: Charles Keepax
Date: Wed May 24 2017 - 04:40:40 EST


On Wed, May 24, 2017 at 03:27:31AM -0500, Gustavo A. R. Silva wrote:
> Add null check before dereferencing pointer of_id in order to avoid
> a potential NULL pointer dereference.
>
> Addresses-Coverity-ID: 1408830
> Cc: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>
> ---

Acked-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

Looks good although is there not probably the same issue in
wm831x-i2c.c? Might be worth fixing up both of them.

Thanks,
Charles