]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qga: Fix memory allocation pasto
authorMarkus Armbruster <armbru@redhat.com>
Fri, 21 Feb 2014 12:36:49 +0000 (13:36 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 23 Feb 2014 19:13:52 +0000 (13:13 -0600)
commit10b7c5dd0da1a92182e87f5fc1887d779ad1a9e8
treefb9539d7e73029f8de2b30b583a49efa0144a029
parent2c958923bc09b1faf2505a988b4b1c458580e9ac
qga: Fix memory allocation pasto

qmp_guest_file_seek() allocates memory for a GuestFileRead object
instead of the GuestFileSeek object it actually uses.  Harmless,
because the GuestFileRead is slightly larger.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c