[PATCH v5 0/6] ata: Do not release the host resources twice on probe() failure

Niklas Cassel cassel at kernel.org
Tue Sep 15 02:58:57 PDT 2026


On Tue, 15 Sep 2026 10:41:26 +0200, Niklas Cassel wrote:
> ata_host_start() registers ata_host_stop() as a devres action as soon as
> it has succeeded:
> 
> 	if (have_stop) {
> 		start_dr = devres_alloc(ata_host_stop, 0, GFP_KERNEL);
> 	...
> 	if (start_dr)
> 		devres_add(host->dev, start_dr);
> 	host->flags |= ATA_HOST_STARTED;
> 
> [...]

Applied to libata/linux.git (for-7.4), thanks!

[1/6] ata: ahci_st: Do not ignore errors when getting the reset controls
      https://git.kernel.org/libata/linux/c/c74ee923
[2/6] ata: ahci_st: Assert the power down reset in the probe() error path
      https://git.kernel.org/libata/linux/c/91e0a745
[3/6] ata: sata_fsl: Fix use-after-free of host_priv on probe() failure
      https://git.kernel.org/libata/linux/c/70b11967
[4/6] ata: libahci: Free the IRQs when activating a multi-IRQ host fails
      https://git.kernel.org/libata/linux/c/34a4a344
[5/6] ata: libata: Do not leave ata_host_stop() registered when activation fails
      https://git.kernel.org/libata/linux/c/d2f97700
[6/6] ata: libata-core: Fix the ata_host_register() kdoc
      https://git.kernel.org/libata/linux/c/52d19459

Kind regards,
Niklas



More information about the linux-arm-kernel mailing list