]> git.proxmox.com Git - mirror_qemu.git/commit
usb: add device checks before redirector calls to usb_ep_get()
authorLiam Merwick <liam.merwick@oracle.com>
Wed, 6 Feb 2019 13:36:55 +0000 (13:36 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Feb 2019 08:41:23 +0000 (09:41 +0100)
commit4fc12aa1fcc212e47a695b4cd34e75f3dab7d7d7
tree4586b3f021e67dc9e592794d610f1bad7a719b89
parente87fd1e6e547a80b3e403e882b829d2750e24e44
usb: add device checks before redirector calls to usb_ep_get()

Add an assert and an explicit check before the two callers to
usb_ep_get() in the USB redirector code to ensure the device
passed in is not NULL.

Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Message-id: 1549460216-25808-9-git-send-email-liam.merwick@oracle.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c