Unverified Commit ae2fd6c7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8705 usb: dwc2: fix possible NULL pointer dereference caused by driver concurrency

parents 254b0364 b98dfd2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4844,8 +4844,8 @@ static int _dwc2_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
	if (qh_allocated && qh->channel && qh->channel->qh == qh)
		qh->channel->qh = NULL;
fail2:
	spin_unlock_irqrestore(&hsotg->lock, flags);
	urb->hcpriv = NULL;
	spin_unlock_irqrestore(&hsotg->lock, flags);
	kfree(qtd);
	qtd = NULL;
fail1: