]> git.ipfire.org Git - thirdparty/qemu.git/commit
usb-redir: Fix crash on migration with no client connected
authorHans de Goede <hdegoede@redhat.com>
Fri, 15 Mar 2013 10:52:37 +0000 (11:52 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 May 2013 17:06:36 +0000 (12:06 -0500)
commitb90fd157f7e1e210c845f18e4c1c09343a5cce9d
tree9843858197ad6a56b280ea1845044db60e34d07f
parent7322cb17faca8af3abe480bf16587a6b83c1bc7d
usb-redir: Fix crash on migration with no client connected

If no client is connected on the src side, then we won't receive a
parser during migrate, in this case usbredir_post_load() should be a nop,
rather then to try to derefefence the NULL dev->parser pointer.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 3713e1485e6eace7d48b9c790602cfd92c616e5f)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/redirect.c