mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 05:36:39 +00:00
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>
This commit is contained in:
parent
6f0953b1a4
commit
e3c916e680
@ -561,7 +561,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
|
|||||||
|
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
if (r->buf != NULL)
|
if (r->buf != NULL)
|
||||||
free(r->buf);
|
qemu_free(r->buf);
|
||||||
r->buflen = 0;
|
r->buflen = 0;
|
||||||
r->buf = NULL;
|
r->buf = NULL;
|
||||||
ret = execute_command(s->dinfo->bdrv, r, SG_DXFER_NONE, scsi_command_complete);
|
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->buflen != len) {
|
||||||
if (r->buf != NULL)
|
if (r->buf != NULL)
|
||||||
free(r->buf);
|
qemu_free(r->buf);
|
||||||
r->buf = qemu_malloc(len);
|
r->buf = qemu_malloc(len);
|
||||||
r->buflen = len;
|
r->buflen = len;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user