Skip to content

Commit 0ff8d1b

Browse files
matthewreimergregkh
authored andcommitted
USB: pxa27x_udc: use four bits to store endpoint addresses
Endpoint addresses on pxa27x can be programmed as 1-15, but since only three bits were being used to store the endpoint number it was possible to overflow. Signed-off-by: Matt Reimer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 92a6e6b commit 0ff8d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/pxa27x_udc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ struct pxa_ep {
360360
* Specific pxa endpoint data, needed for hardware initialization
361361
*/
362362
unsigned dir_in:1;
363-
unsigned addr:3;
363+
unsigned addr:4;
364364
unsigned config:2;
365365
unsigned interface:3;
366366
unsigned alternate:3;

0 commit comments

Comments
 (0)