From patchwork Thu Jun 2 05:41:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7/7] usb-uvc: Use qemu_malloc() Date: Wed, 01 Jun 2011 19:41:10 -0000 From: Brad Hards X-Patchwork-Id: 98354 Message-Id: <1306993270-24144-8-git-send-email-bradh@frogmouth.net> To: claunia@claunia.com, qemu-devel@nongnu.org Cc: Brad Hards As requested by Blue Swirl (2010-06-10) Signed-off-by: Brad Hards --- hw/usb-uvc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index 1e3d339..d1e71f8 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -1025,7 +1025,7 @@ static int usb_uvc_initfn(USBDevice *dev) DPRINTF("Maximum image size: %d bytes.\n", frame_max_length); DPRINTF("Allocating memory for frames.\n"); - frame = malloc(frame_max_length); + frame = qemu_malloc(frame_max_length); frame_start = frame; frame_id = 1;