Thread (4 messages) 4 messages, 4 authors, 2017-12-20

Re: [PATCH] pinctrl: axp209: dereference pointer after it's been set

From: Linus Walleij <hidden>
Date: 2017-12-20 08:07:39
Also in: lkml

On Wed, Dec 13, 2017 at 9:55 AM, Quentin Schulz
[off-list ref] wrote:
The number of GPIOs is gotten from a field within the structure
referenced in the of_device.data but it was actually read before it was
retrieved, thus it was dereferencing a null pointer.

Set the number of GPIOs after retrieving of_device.data.

Fixes: e1190083b89b ("pinctrl: axp209: add support for AXP813 GPIOs")

Signed-off-by: Quentin Schulz <redacted>
Reported-by: Mylène Josserand <redacted>
Patch applied with the tags for test and ACK.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help