qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [PATCH v2 2/7] hw/mips/mips_jazz.c: Store irq array i


From: Michael Tokarev
Subject: Re: [Qemu-trivial] [PATCH v2 2/7] hw/mips/mips_jazz.c: Store irq array in MachineState to fix memory leak
Date: Thu, 04 Jun 2015 17:32:38 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

04.06.2015 17:30, Shannon Zhao wrote:

>> BTW, there's also cpu_exit_irq in this function whose allocation also
>> suffers from qemu_allocate_irqs(..., 1) API abuse.
> 
> Yeah, missed this one.

This one isn't that simple, because it passes the result to DMA_init
which expects a pointer, even if it uses only one element of the
array.

/mjt




reply via email to

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