summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-07-13 18:01:49 +0000
committermav <mav@FreeBSD.org>2009-07-13 18:01:49 +0000
commit03cf96dd3ab9f736da8fb280de7a2cb9e7ac3f93 (patch)
tree54a70f8e035c4dfbead6cf25b1e85b7656a2b290
parent1f46aed53dfeb292a0918a810a079b43ddeb4e85 (diff)
downloadFreeBSD-src-03cf96dd3ab9f736da8fb280de7a2cb9e7ac3f93.zip
FreeBSD-src-03cf96dd3ab9f736da8fb280de7a2cb9e7ac3f93.tar.gz
Fix Marvel SATA controllers operation, broken by rev. 188765,
by using uninitialized variable. Tested by: Chris Hedley Approved by: re (kensmith)
-rw-r--r--sys/dev/ata/chipsets/ata-marvell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/chipsets/ata-marvell.c b/sys/dev/ata/chipsets/ata-marvell.c
index a1dff9b..0544e19 100644
--- a/sys/dev/ata/chipsets/ata-marvell.c
+++ b/sys/dev/ata/chipsets/ata-marvell.c
@@ -220,11 +220,11 @@ ata_marvell_edma_ch_attach(device_t dev)
{
struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
struct ata_channel *ch = device_get_softc(dev);
- u_int64_t work = ch->dma.work_bus;
+ u_int64_t work;
int i;
ata_marvell_edma_dmainit(dev);
-
+ work = ch->dma.work_bus;
/* clear work area */
bzero(ch->dma.work, 1024+256);
OpenPOWER on IntegriCloud