]> git.proxmox.com Git - qemu.git/commit
xhci: fix segfault
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 31 Jul 2013 08:54:11 +0000 (10:54 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 14:30:50 +0000 (09:30 -0500)
commit283d8f93e5346ffd941d0f58826da9b8c1b70051
treedc4402ead57fdf18cb16799bc7d4d37a90b088e3
parenta3ea885abd4fec0464814097646f8f47fced09eb
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: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 75cc1c1fcba1987bdf3979c4289ab756c2b15742)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/hcd-xhci.c