Re: [PATCH] pinctrl: renesas: rzt2h: Fix device node leak in rzt2h_gpio_register()

From: Linus Walleij

Date: Wed Jan 28 2026 - 02:56:09 EST


Hi Felix,

thanks for your patch!

On Mon, Jan 26, 2026 at 5:35 PM Felix Gu <ustc.gu@xxxxxxxxx> wrote:

> + of_node_put(of_args.np);
> if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
> of_args.args[2] != pctrl->data->n_port_pins)
> return dev_err_probe(dev, -EINVAL,

To me it's a bit odd to dereference .np and then use other parts of
the args the next line but maybe that works.

Geert will decide on the patch.

Yours,
Linus Walleij