diff options
author | Liam Merwick | 2019-02-06 14:36:53 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2019-02-20 09:41:23 +0100 |
commit | ff668537b6ec172b797091d11a228a97c4bfca8e (patch) | |
tree | 2f1a639581372a1fe83bcf749631066f3f5364d9 /vl.c | |
parent | ohci: check device is not NULL before calling usb_ep_get() (diff) | |
download | qemu-ff668537b6ec172b797091d11a228a97c4bfca8e.tar.gz qemu-ff668537b6ec172b797091d11a228a97c4bfca8e.tar.xz qemu-ff668537b6ec172b797091d11a228a97c4bfca8e.zip |
uhci: check device is not NULL before calling usb_ep_get()
In uhci_handle_td(), the call to ehci_find_device() can return NULL
if it doesn't find a device matching 'addr' so 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-7-git-send-email-liam.merwick@oracle.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions