diff options
author | Liam Merwick | 2019-02-06 14:36:54 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2019-02-20 09:41:23 +0100 |
commit | e87fd1e6e547a80b3e403e882b829d2750e24e44 (patch) | |
tree | 6af1f6c8720f4ad3888bf2548f3f5a43c6958971 /hmp-commands-info.hx | |
parent | uhci: check device is not NULL before calling usb_ep_get() (diff) | |
download | qemu-e87fd1e6e547a80b3e403e882b829d2750e24e44.tar.gz qemu-e87fd1e6e547a80b3e403e882b829d2750e24e44.tar.xz qemu-e87fd1e6e547a80b3e403e882b829d2750e24e44.zip |
usb: check device is not NULL before calling usb_ep_get()
In musb_packet(), the call to usb_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(). This then
allows the subsequent calculation of 'id' to be streamlined.
Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Message-id: 1549460216-25808-8-git-send-email-liam.merwick@oracle.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hmp-commands-info.hx')
0 files changed, 0 insertions, 0 deletions