Re: [PATCH] block: partitions: fix of_node refcount leak in of_partition()
From: Jens Axboe
Date: Tue May 26 2026 - 12:37:22 EST
On Tue, 26 May 2026 10:21:24 +0000, Wentao Liang wrote:
> of_partition() calls of_node_get() on the parent device node at the
> beginning of the function, storing the reference in 'partitions_np'.
> This reference is leaked in two paths:
>
> 1. The compatibility check at the top of the function returns 0
> without releasing partitions_np when the node exists but is not
> "fixed-partitions" compatible.
>
> [...]
Applied, thanks!
[1/1] block: partitions: fix of_node refcount leak in of_partition()
commit: 148cd4873115feb266c002d4d4618ea7f14342d9
Best regards,
--
Jens Axboe