Re: [PATCH v2] soundwire: mipi_disco: Put fwnode on property array read errors
From: Vinod Koul
Date: Tue Nov 24 2026 - 04:07:47 EST
On 12-11-26, 14:09, Xiangwu Lai wrote:
> sdw_master_read_prop() and sdw_slave_read_dpn() take a fwnode
> reference with device_get_named_child_node() and already release it
> on the -ENOMEM and success paths. However, the error paths added
> for the property array reads jump straight out without dropping the
> reference, leaking it on every failed read. The lane-list support
> in sdw_slave_read_dpn() is even missing the put on its -ENOMEM path,
> unlike the other array allocations in the same function.
>
> Release the reference on those error paths as well, matching the
> existing -ENOMEM handling in the same functions.
This fails for me on on the current code - sdw/next. Please rebase
--
~Vinod