diff options
author | 2012-08-03 15:57:10 -0400 | |
---|---|---|
committer | 2012-08-10 10:25:12 +0200 | |
commit | ea8d82a1ed72634f089ed1bccccd9c84cc1ab855 (patch) | |
tree | 4d1ed2da96ceb799f1a5796c3f64171aba8b258f /scripts/update-linux-headers.sh | |
parent | ahci: Fix ahci cdrom read corruptions for reads > 128k (diff) | |
download | qemu-ea8d82a1ed72634f089ed1bccccd9c84cc1ab855.tar.xz qemu-ea8d82a1ed72634f089ed1bccccd9c84cc1ab855.zip |
ahci: Fix sglist memleak in ahci_dma_rw_buf()
I noticed that in hw/ide/ahci:ahci_dma_rw_buf() we do not free the sglist. Thus,
I've added a call to qemu_sglist_destroy() to fix this memory leak.
In addition, I've adeed a call in qemu_sglist_destroy() to 0 all of the sglist
fields, in case there is some other codepath that tries to free the sglist.
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/update-linux-headers.sh')
0 files changed, 0 insertions, 0 deletions