Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70728c29 authored by Marek Vasut's avatar Marek Vasut Committed by Linus Walleij
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3edfb7bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment