[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e29d221e-4ecc-41a8-9cfa-268c45ec9bdb@web.de>
Date: Tue, 17 Dec 2024 13:16:30 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: make_ruc2021@....com, linux-spi@...r.kernel.org,
Aaro Koskinen <aaro.koskinen@...ia.com>, Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH] spi: fix reference leak in spi_register_controller()
> 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
Powered by blists - more mailing lists