[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 7105b05] xen nic: use qemu_malloc
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 7105b05] xen nic: use qemu_malloc |
Date: |
Mon, 08 Jun 2009 17:05:16 -0000 |
From: Gerd Hoffmann <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index 048d865..5fcc701 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev)
if (txreq.flags & NETTXF_csum_blank) {
/* have read-only mapping -> can't fill checksum in-place */
if (!tmpbuf)
- tmpbuf = malloc(PAGE_SIZE);
+ tmpbuf = qemu_malloc(PAGE_SIZE);
memcpy(tmpbuf, page + txreq.offset, txreq.size);
net_checksum_calculate(tmpbuf, txreq.size);
qemu_send_packet(netdev->vs, tmpbuf, txreq.size);
@@ -190,7 +190,7 @@ static void net_tx_packets(struct XenNetDev *netdev)
break;
netdev->tx_work = 0;
}
- free(tmpbuf);
+ qemu_free(tmpbuf);
}
/* ------------------------------------------------------------- */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 7105b05] xen nic: use qemu_malloc,
Anthony Liguori <=