[PATCH] pinctrl: stm32: return errors from stm32_gpio_direction_output()

Linus Walleij linus.walleij at linaro.org
Fri Nov 24 01:41:11 PST 2023


On Wed, Nov 15, 2023 at 9:34 PM Sergey Shtylyov <s.shtylyov at omp.ru> wrote:

> In the STMicroelectronics STM32 driver, stm32_gpio_direction_output()
> ignores the result of pinctrl_gpio_direction_output() for no good reason.
> Let's propagate errors from pinctrl_gpio_direction_output() upstream...
>
> Found by Linux Verification Center (linuxtesting.org) with the Svace static
> analysis tool.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>

Patch applied!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list