qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH] ide/macio: Fix macio DMA initialisation.


From: Andreas Färber
Subject: Re: [Qemu-ppc] [PATCH] ide/macio: Fix macio DMA initialisation.
Date: Sun, 24 Feb 2013 21:53:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

Am 24.02.2013 21:46, schrieb Mark Cave-Ayland:
> Commit 07a7484e5d713f1eb7c1c37b18a8ab0d56d88875 accidentally introduced a bug
> in the initialisation of the second macio DMA device which could cause some
> DMA operations to segfault QEMU.
> 
> CC: Andreas Färber <address@hidden>
> Signed-off-by: Mark Cave-Ayland <address@hidden>

Acked-by: Andreas Färber <address@hidden>

Thanks for catching this,

Andreas

> ---
>  hw/macio.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/macio.c b/hw/macio.c
> index 74bdcd1..0c6a6b8 100644
> --- a/hw/macio.c
> +++ b/hw/macio.c
> @@ -188,7 +188,7 @@ static int macio_newworld_initfn(PCIDevice *d)
>      sysbus_dev = SYS_BUS_DEVICE(&ns->ide[1]);
>      sysbus_connect_irq(sysbus_dev, 0, ns->irqs[3]);
>      sysbus_connect_irq(sysbus_dev, 1, ns->irqs[4]);
> -    macio_ide_register_dma(&ns->ide[0], s->dbdma, 0x1a);
> +    macio_ide_register_dma(&ns->ide[1], s->dbdma, 0x1a);
>      ret = qdev_init(DEVICE(&ns->ide[1]));
>      if (ret < 0) {
>          return ret;

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]