[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1] xlnx-zdma: Correct mem leaks and memset to z
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v1] xlnx-zdma: Correct mem leaks and memset to zero on desc unaligned errors |
Date: |
Tue, 29 May 2018 15:57:14 +0100 |
On 28 May 2018 at 19:48, Francisco Iglesias <address@hidden> wrote:
> Coverity found that the string return by 'object_get_canonical_path' was not
> being freed at two locations in the model (CID 1391294 and CID 1391293) and
> also that a memset was being called with a value greater than the max of a
> byte
> on the second argument (CID 1391286). This patch corrects this by adding the
> freeing of the strings and also changing to memset to zero instead on
> descriptor unaligned errors.
>
> Signed-off-by: Francisco Iglesias <address@hidden>
> ---
> hw/dma/xlnx-zdma.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
Applied to target-arm.next, thanks.
-- PMM