Date: Mon, 13 Jul 2009 18:01:49 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r195659 - head/sys/dev/ata/chipsets Message-ID: <200907131801.n6DI1nKg031824@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Mon Jul 13 18:01:49 2009 New Revision: 195659 URL: http://svn.freebsd.org/changeset/base/195659 Log: Fix Marvel SATA controllers operation, broken by rev. 188765, by using uninitialized variable. Tested by: Chris Hedley Approved by: re (kensmith) Modified: head/sys/dev/ata/chipsets/ata-marvell.c Modified: head/sys/dev/ata/chipsets/ata-marvell.c ============================================================================== --- head/sys/dev/ata/chipsets/ata-marvell.c Mon Jul 13 17:46:17 2009 (r195658) +++ head/sys/dev/ata/chipsets/ata-marvell.c Mon Jul 13 18:01:49 2009 (r195659) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907131801.n6DI1nKg031824>