Re: [PATCH v2] EDAC/igen6: Fix error handling in igen6_edac driver

From: Luck, Tony

Date: Thu Nov 20 2025 - 11:49:59 EST


On Wed, Nov 05, 2025 at 05:02:44PM +0800, Ma Ke wrote:
> The igen6_edac driver calls device_initialize() for all memory
> controllers in igen6_register_mci(), but misses corresponding
> put_device() calls in error paths and during normal shutdown in
> igen6_unregister_mcis().
>
> Adding the missing put_device() calls improves code readability and
> ensures proper reference counting for the device structure.
>
> Found by code review.
>
> Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>

Applied. Thanks.

-Tony