[PATCH next] pinctrl: mediatek: common-v1: Fix error checking in mtk_eint_init()

Linus Walleij linus.walleij at linaro.org
Wed Apr 23 03:59:44 PDT 2025


On Wed, Apr 23, 2025 at 10:23 AM Dan Carpenter <dan.carpenter at linaro.org> wrote:

> The devm_kzalloc() function doesn't return error pointers, it returns
> NULL on error.  Then on the next line it checks the same pointer again
> by mistake, "->base" instead of "->base[0]".
>
> Fixes: fe412e3a6c97 ("pinctrl: mediatek: common-v1: Fix EINT breakage on older controllers")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Patch applied for fixes as a fix on fix.

Yours,
Linus Walleij



More information about the Linux-mediatek mailing list