From: Matt Reimer Date: Thu, 1 Apr 2010 20:44:04 +0000 (-0700) Subject: USB: pxa27x_udc: use four bits to store endpoint addresses X-Git-Tag: v2.6.35-rc1~471^2~156 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0ff8d1b3c858ea7c8daa54f7577971a76d04d283;p=~emulex%2Finfiniband.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/pxa27x_udc.h b/drivers/usb/gadget/pxa27x_udc.h index ff61e4866e8..cd16231d8c7 100644 --- a/drivers/usb/gadget/pxa27x_udc.h +++ b/drivers/usb/gadget/pxa27x_udc.h @@ -360,7 +360,7 @@ struct pxa_ep { * Specific pxa endpoint data, needed for hardware initialization */ unsigned dir_in:1; - unsigned addr:3; + unsigned addr:4; unsigned config:2; unsigned interface:3; unsigned alternate:3;