Re: [PATCH v2] sunvdc: Balance device refcount in vdc_port_mpgroup_check

From: Jens Axboe
Date: Tue Jul 22 2025 - 12:02:49 EST



On Sat, 19 Jul 2025 15:58:56 +0800, Ma Ke wrote:
> Using device_find_child() to locate a probed virtual-device-port node
> causes a device refcount imbalance, as device_find_child() internally
> calls get_device() to increment the device’s reference count before
> returning its pointer. vdc_port_mpgroup_check() directly returns true
> upon finding a matching device without releasing the reference via
> put_device(). We should call put_device() to decrement refcount.
>
> [...]

Applied, thanks!

[1/1] sunvdc: Balance device refcount in vdc_port_mpgroup_check
commit: 63ce53724637e2e7ba51fe3a4f78351715049905

Best regards,
--
Jens Axboe