Re: [PATCH v2] gpio: mvebu: fix NULL pointer dereference in suspend/resume

From: Bartosz Golaszewski

Date: Mon Jun 08 2026 - 10:48:21 EST



On Mon, 08 Jun 2026 16:43:34 +0800, Yun Zhou wrote:
> mvebu_pwm_suspend() and mvebu_pwm_resume() are called for all GPIO
> banks during suspend/resume, but not all banks have PWM functionality.
> GPIO banks without PWM have mvchip->mvpwm set to NULL.
>
> Calling mvebu_pwm_suspend() with mvpwm == NULL causes a NULL pointer
> dereference when it tries to access mvpwm->blink_select.
>
> [...]

Applied, thanks!

[1/1] gpio: mvebu: fix NULL pointer dereference in suspend/resume
https://git.kernel.org/brgl/c/8c784f357364a5424ce1e45d193b0900bbc88fd6

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>