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

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

Merge "usb: dwc3: Add a NULL check in dwc3_resume_work()"

parents 5221be6e f85c9652
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2513,10 +2513,10 @@ static void dwc3_resume_work(struct work_struct *w)

	dev_dbg(mdwc->dev, "%s: dwc3 resume work\n", __func__);

	if (mdwc->vbus_active && !mdwc->in_restart) {
	if (mdwc->extcon && mdwc->vbus_active && !mdwc->in_restart) {
		extcon_id = EXTCON_USB;
		edev = mdwc->extcon[mdwc->ext_idx].edev;
	} else if (mdwc->id_state == DWC3_ID_GROUND) {
	} else if (mdwc->extcon && mdwc->id_state == DWC3_ID_GROUND) {
		extcon_id = EXTCON_USB_HOST;
		edev = mdwc->extcon[mdwc->ext_idx].edev;
	}