]> Git Repo - qemu.git/commit
xhci: fix segfault
authorGerd Hoffmann <[email protected]>
Wed, 31 Jul 2013 08:54:11 +0000 (10:54 +0200)
committerGerd Hoffmann <[email protected]>
Thu, 1 Aug 2013 11:03:42 +0000 (13:03 +0200)
commit75cc1c1fcba1987bdf3979c4289ab756c2b15742
tree1c893fb96c94fde4338a5296d806476a9d154b48
parent75e2a4baf1536682d111d9bee0261806737a32dc
xhci: fix segfault

Guest trying to reset a endpoint of a disconnected device resulted in
xhci trying to dereference uport while being NULL, thereby crashing
qemu.  Fix that by adding a check.  Drop unused dev variable while
touching that code bit.

Cc: [email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/hcd-xhci.c
This page took 0.026373 seconds and 4 git commands to generate.