diff options
| author | Quentin Schulz <[email protected]> | 2017-12-13 09:55:03 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-12-20 09:06:29 +0100 |
| commit | a049815229b6fcf0dd927630cbf5c127f5fb2a82 (patch) | |
| tree | 1cad5808446c50beb50e4fc2813f4d44d71c7368 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 5c9d8c4f6b8168738a26bcf288516cc3a0886810 (diff) | |
pinctrl: axp209: dereference pointer after it's been set
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 <[email protected]>
Reported-by: Mylène Josserand <[email protected]>
Tested-by: Mylène Josserand <[email protected]>
Acked-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions