Re: [PATCH] spi: fix reference leak in spi_register_controller()

From: Markus Elfring
Date: Tue Dec 17 2024 - 07:17:24 EST


> Once device_add() failed, we should call put_device() to decrement
> reference count for cleanup. Or it could cause memory leak.

Is there a need to integrate the added function call better into
a goto chain?

Regards,
Markus