usb dwc2: Fix a potential garbage string print in an error path.
Change-Id: I56f8ee9bc883baac8707f136be396bb2669f911b
This commit is contained in:
parent
5c6d6bd612
commit
af75619585
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ static void usb_dw_control_received(struct usb_ctrlrequest* req)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
panicf("%s: bad state=%s", __func__, dw_state_str[ep0.state]);
|
panicf("%s: bad state=%s", __func__, ep0.state >= EP0_NUM_STATES ? "unk" : dw_state_str[ep0.state]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue