Skip to content

Commit

Permalink
Add extra checks in usbdwc.c to improve stability
Browse files Browse the repository at this point in the history
  • Loading branch information
sirnewton01 committed Nov 6, 2016
1 parent 33a6c47 commit 3090674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bcm/usbdwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ chansetup(Hostchan *hc, Ep *ep)
hcc = 0;
break;
default:
hcc = ep->dev->nb<<ODevaddr;
hcc = (ep->dev->nb&Devmax)<<ODevaddr;
break;
}
hcc |= ep->maxpkt | 1<<OMulticnt | ep->nb<<OEpnum;
hcc |= ep->maxpkt | 1<<OMulticnt | (ep->nb&Epmax)<<OEpnum;
switch(ep->ttype){
case Tctl:
hcc |= Epctl;
Expand Down

0 comments on commit 3090674

Please sign in to comment.