diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 386e5f2..064ee85 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -5420,7 +5420,7 @@ int ata_device_add(const struct ata_prob ap = ata_host_add(ent, host_set, i); if (!ap) - goto err_out; + goto err_free_ret; host_set->ports[i] = ap; xfer_mode_mask =(ap->udma_mask << ATA_SHIFT_UDMA) |