[Letux-kernel] omap-gpmc gta04 regression 4.7-rc1

Linus Walleij linus.walleij at linaro.org
Tue Jun 7 15:33:30 CEST 2016

On Tue, Jun 7, 2016 at 9:50 AM, Roger Quadros <rogerq at ti.com> wrote:

> Linus, any idea why of_gpiochip_find_and_xlate() would do a NULL pointer dereference?

Nope. I see this uses the array fetch function which I did patch around but
"should" not affect this.

> We have a case here where the GPMC driver registers a gpiochip but after a while
> unregisters it due to some other orthogonal resource not being available.
> Is this registering and unregistering considered acceptable from gpiochip point of view?

That would be if it doesn't really go away aftert gpiochip_remove() because
some refcount doesn't go zero, so double-check that. It should be fine
anyway though ... just the instance floating around somewhere.

Linus Walleij

More information about the Letux-kernel mailing list