aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-generic.c
diff options
context:
space:
mode:
authorJean-Christophe DUBOIS <jcd@tribudubois.net>2009-11-15 19:18:18 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-02 08:57:43 -0600
commite3c916e6807bc7e8277d8269a60c0256a36b62f7 (patch)
tree96468e9ac7d70d5d3ff40876023b291948fe089d /hw/scsi-generic.c
parent6f0953b1a493d9df822051168a904d589e5248a4 (diff)
Fix qemu_free use in scsi-generic.c
scsi-generic.c is using free() instead of qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r--hw/scsi-generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 92ef7716b7..cf56ea0f2c 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -561,7 +561,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
if (len == 0) {
if (r->buf != NULL)
- free(r->buf);
+ qemu_free(r->buf);
r->buflen = 0;
r->buf = NULL;
ret = execute_command(s->dinfo->bdrv, r, SG_DXFER_NONE, scsi_command_complete);
@@ -574,7 +574,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
if (r->buflen != len) {
if (r->buf != NULL)
- free(r->buf);
+ qemu_free(r->buf);
r->buf = qemu_malloc(len);
r->buflen = len;
}