rp2040_hcd: check pointer before using

This commit is contained in:
Peter Lawrence 2021-01-23 20:19:10 -06:00
parent 469ca2f155
commit 587d1b334b

View File

@ -444,6 +444,7 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t *
// Get appropriate ep. Either EPX or interrupt endpoint
struct hw_endpoint *ep = get_dev_ep(dev_addr, ep_addr);
assert(ep);
if (ep_addr != ep->ep_addr)
{