]> Git Repo - qemu.git/commit
ehci: check device is not NULL before calling usb_ep_get()
authorLiam Merwick <[email protected]>
Wed, 6 Feb 2019 13:36:51 +0000 (13:36 +0000)
committerGerd Hoffmann <[email protected]>
Wed, 20 Feb 2019 08:41:23 +0000 (09:41 +0100)
commite94682f1febe3cc95cbe144137dd35eae39dc1e0
tree2313486d6508e0739e94520d40c1d78bc0cd86b6
parent7cb513aa34fe5639c71223f06b2b6c7934815317
ehci: check device is not NULL before calling usb_ep_get()

In ehci_process_itd(), the call to ehci_find_device() can return NULL
if it doesn't find a device matching 'devaddr' so explicitly check
the return value before passing it to usb_ep_get().

Signed-off-by: Liam Merwick <[email protected]>
Message-id: 1549460216[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/hcd-ehci.c
This page took 0.024524 seconds and 4 git commands to generate.