From 228acff87974bebc8ce17fbd13a7a7ddd24f694f Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:50 +0100 Subject: [PATCH] Revert "ata: libata-core: Fix null pointer dereference on error" This reverts commit c45f01f66cfd1f5ddb1f9f398a3efe8314207e49. --- drivers/ata/libata-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 467fc8002..3717ed6fc 100755 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -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);