Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263115
b: refs/heads/master
c: a081da6
h: refs/heads/master
i:
  263113: 343584c
  263111: d54783a
v: v3
  • Loading branch information
Julia Lawall authored and Jeff Garzik committed Aug 19, 2011
1 parent 618d6aa commit 1f339fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e39c75cf3e045c2fb3988770b207dfd09c30d4ac
refs/heads/master: a081da630d64acf132b2db1043c586b993d49da7
14 changes: 6 additions & 8 deletions trunk/drivers/ata/sata_dwc_460ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ static int sata_dwc_port_start(struct ata_port *ap)
dev_err(ap->dev, "%s: dma_alloc_coherent failed\n",
__func__);
err = -ENOMEM;
goto CLEANUP;
goto CLEANUP_ALLOC;
}
}

Expand All @@ -1349,15 +1349,13 @@ static int sata_dwc_port_start(struct ata_port *ap)
/* Clear any error bits before libata starts issuing commands */
clear_serror();
ap->private_data = hsdevp;
dev_dbg(ap->dev, "%s: done\n", __func__);
return 0;

CLEANUP_ALLOC:
kfree(hsdevp);
CLEANUP:
if (err) {
sata_dwc_port_stop(ap);
dev_dbg(ap->dev, "%s: fail\n", __func__);
} else {
dev_dbg(ap->dev, "%s: done\n", __func__);
}

dev_dbg(ap->dev, "%s: fail. ap->id = %d\n", __func__, ap->print_id);
return err;
}

Expand Down

0 comments on commit 1f339fd

Please sign in to comment.