mbox series

[0/2] USB static analysis patches

Message ID 1548859022-3969-1-git-send-email-liam.merwick@oracle.com (mailing list archive)
Headers show
Series USB static analysis patches | expand

Message

Liam Merwick Jan. 30, 2019, 2:37 p.m. UTC
These two patches are a result of running the Parfait static analysis
tool on QEMU.  The first patch is an optimisation to move an assignment
after a test and the second patch handles a number of potential NULL
pointer dereferences if usb_ep_get() returns NULL.

Liam Merwick (2):
  usb: rearrange usb_ep_get()
  usb: deal with potential Null pointer returned by usb_ep_get()

 hw/usb/core.c | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)