]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.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)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 Apr 2013 07:55:48 +0000 (09:55 +0200)
commit3713e1485e6eace7d48b9c790602cfd92c616e5f
treed87d634d4ccc5f941c2af86781f69b0d84c29024
parent162cbbd1736de2bca43fdefa7e98c54a361ee60d
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>
hw/usb/redirect.c