Revert "ata: libata-core: Fix null pointer dereference on error"

This reverts commit c45f01f66c.
This commit is contained in:
Ksawlii 2024-11-24 00:23:50 +01:00
parent 9947944ca2
commit 228acff879

View file

@ -5366,9 +5366,6 @@ static void ata_host_release(struct kref *kref)
for (i = 0; i < host->n_ports; i++) {
struct ata_port *ap = host->ports[i];
if (!ap)
continue;
kfree(ap->pmp_link);
kfree(ap->slave_link);
kfree(ap);