Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4a43e2a authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "xhci: Fix use-after-free in xhci_free_virt_device"

parents e7d95611 bb1aeff9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3559,6 +3559,7 @@ static void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev)
		del_timer_sync(&virt_dev->eps[i].stop_cmd_timer);
	}

	virt_dev->udev = NULL;
	xhci_disable_slot(xhci, udev->slot_id);
	/*
	 * Event command completion handler will free any data structures