|
|
9ae3a8 |
From 722ac823089706c3c4ea71386eafb4d7062fa7c9 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Fri, 11 Jul 2014 14:20:47 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 13/43] usb: Fix iovec memleak on combined-packet free
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1405088470-24115-15-git-send-email-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 59845
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.1 qemu-kvm PATCH 14/37] usb: Fix iovec memleak on combined-packet free
|
|
|
9ae3a8 |
Bugzilla: 1075846
|
|
|
9ae3a8 |
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 0ca6db4f3b3df5c4e5285a48a7709bdced5068de)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/combined-packet.c | 1 +
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/combined-packet.c | 1 +
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/usb/combined-packet.c b/hw/usb/combined-packet.c
|
|
|
9ae3a8 |
index 13f6602..ad77705 100644
|
|
|
9ae3a8 |
--- a/hw/usb/combined-packet.c
|
|
|
9ae3a8 |
+++ b/hw/usb/combined-packet.c
|
|
|
9ae3a8 |
@@ -39,6 +39,7 @@ static void usb_combined_packet_remove(USBCombinedPacket *combined,
|
|
|
9ae3a8 |
p->combined = NULL;
|
|
|
9ae3a8 |
QTAILQ_REMOVE(&combined->packets, p, combined_entry);
|
|
|
9ae3a8 |
if (QTAILQ_EMPTY(&combined->packets)) {
|
|
|
9ae3a8 |
+ qemu_iovec_destroy(&combined->iov);
|
|
|
9ae3a8 |
g_free(combined);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|