Revert "ata: libata-core: Fix null pointer dereference on error"
This reverts commit c45f01f66c
.
This commit is contained in:
parent
9947944ca2
commit
228acff879
1 changed files with 0 additions and 3 deletions
|
@ -5366,9 +5366,6 @@ static void ata_host_release(struct kref *kref)
|
||||||
for (i = 0; i < host->n_ports; i++) {
|
for (i = 0; i < host->n_ports; i++) {
|
||||||
struct ata_port *ap = host->ports[i];
|
struct ata_port *ap = host->ports[i];
|
||||||
|
|
||||||
if (!ap)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
kfree(ap->pmp_link);
|
kfree(ap->pmp_link);
|
||||||
kfree(ap->slave_link);
|
kfree(ap->slave_link);
|
||||||
kfree(ap);
|
kfree(ap);
|
||||||
|
|
Loading…
Add table
Reference in a new issue