Re: [PATCH] gpio: gpiolib-devprop: Check chip->parent pointer before dereferencing

From: Linus Walleij
Date: Tue Oct 25 2016 - 14:24:12 EST


On Tue, Oct 25, 2016 at 6:31 PM, <tthayer@xxxxxxxxxxxxxxxxxxxxx> wrote:

> From: Thor Thayer <tthayer@xxxxxxxxxxxxxxxxxxxxx>
>
> Confirm the chip->parent is valid before dereferencing because
> the parent parameter is optional.
>
> Signed-off-by: Thor Thayer <tthayer@xxxxxxxxxxxxxxxxxxxxx>

I wish it wasn't. Not much to do about though.

Patch applied.

Yours,
Linus Walleij