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

Commit 0fe2105a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents a2630a6a 595ce83a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3661,6 +3661,7 @@ 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;
	spin_lock_irqsave(&xhci->lock, flags);
	/* Don't disable the slot if the host controller is dead. */
	state = readl(&xhci->op_regs->status);