diff options
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 128e949db47c..bd82253a3329 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1806,6 +1806,7 @@ allocate_instance(struct device *dev, | |||
1806 | musb->ctrl_base = mbase; | 1806 | musb->ctrl_base = mbase; |
1807 | musb->nIrq = -ENODEV; | 1807 | musb->nIrq = -ENODEV; |
1808 | musb->config = config; | 1808 | musb->config = config; |
1809 | BUG_ON(musb->config->num_eps > MUSB_C_NUM_EPS); | ||
1809 | for (epnum = 0, ep = musb->endpoints; | 1810 | for (epnum = 0, ep = musb->endpoints; |
1810 | epnum < musb->config->num_eps; | 1811 | epnum < musb->config->num_eps; |
1811 | epnum++, ep++) { | 1812 | epnum++, ep++) { |