diff options
author | 2018-10-04 00:52:52 +0200 | |
---|---|---|
committer | 2018-10-10 10:33:11 +0200 | |
commit | 70728c29465bc4bfa7a8c14304771eab77e923c7 (patch) | |
tree | cb1500a167ef166b30292403a2a5780d2a32d25c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpiolib: Show correct direction from the beginning (diff) | |
download | wireguard-linux-70728c29465bc4bfa7a8c14304771eab77e923c7.tar.xz wireguard-linux-70728c29465bc4bfa7a8c14304771eab77e923c7.zip |
gpio: syscon: Fix possible NULL ptr usage
The priv->data->set can be NULL while flags contains GPIO_SYSCON_FEAT_OUT
and chip->set is valid pointer. This happens in case the controller uses
the default GPIO setter. Always use chip->set to access the setter to avoid
possible NULL pointer dereferencing.
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions