Re: [PATCH] fix: regulator: as3722_get_regulator_dt_data: fix premature of_node_put leaving dangling of_node pointer

From: Mark Brown

Date: Mon Jun 29 2026 - 09:44:54 EST


On Sat, Jun 27, 2026 at 12:01:50AM +0800, WenTao Liang wrote:
> In as3722_get_regulator_dt_data(), of_get_child_by_name() acquires a
> reference on np, which is then assigned to pdev->dev.of_node. The
> function immediately calls of_node_put(np), releasing the reference and
> leaving pdev->dev.of_node as a dangling pointer.

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.

Attachment: signature.asc
Description: PGP signature