diff options
| author | Liam Merwick <liam.merwick@oracle.com> | 2019-02-06 13:36:53 +0000 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-20 09:41:23 +0100 |
| commit | ff668537b6ec172b797091d11a228a97c4bfca8e (patch) | |
| tree | 2f1a639581372a1fe83bcf749631066f3f5364d9 /hw/usb/redirect.c | |
| parent | 42340fc31f1533207bfd53f9d922624c4fbcf91d (diff) | |
| download | focaccia-qemu-ff668537b6ec172b797091d11a228a97c4bfca8e.tar.gz focaccia-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 'hw/usb/redirect.c')
0 files changed, 0 insertions, 0 deletions