summaryrefslogtreecommitdiffstats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorLiam Merwick2019-02-06 14:36:52 +0100
committerGerd Hoffmann2019-02-20 09:41:23 +0100
commit42340fc31f1533207bfd53f9d922624c4fbcf91d (patch)
tree5078bd60b99d4114293fc2ba2779971277aab0c9 /hmp-commands.hx
parentehci: check device is not NULL before calling usb_ep_get() (diff)
downloadqemu-42340fc31f1533207bfd53f9d922624c4fbcf91d.tar.gz
qemu-42340fc31f1533207bfd53f9d922624c4fbcf91d.tar.xz
qemu-42340fc31f1533207bfd53f9d922624c4fbcf91d.zip
ohci: check device is not NULL before calling usb_ep_get()
A call to ohci_find_device() can return NULL if it doesn't find a device matching 'addr' so for the two callers, explicitly check the return value before passing it to usb_ep_get(). Signed-off-by: Liam Merwick <liam.merwick@oracle.com> Message-id: 1549460216-25808-6-git-send-email-liam.merwick@oracle.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions