From: Yusuke Goda Date: Mon, 31 Jan 2011 06:49:34 +0000 (+0900) Subject: usb: r8a66597-udc: Fixed bufnum of Bulk X-Git-Tag: MMI-PSA29.97-13-9~20798^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d86d52a33cfe6338efd007cfcca895b18c1d84b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: r8a66597-udc: Fixed bufnum of Bulk Signed-off-by: Yusuke Goda Acked-by: Yoshihiro Shimoda Cc: Paul Mundt Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers/usb/gadget/r8a66597-udc.c index 20d43da319ae..015118535f77 100644 --- a/drivers/usb/gadget/r8a66597-udc.c +++ b/drivers/usb/gadget/r8a66597-udc.c @@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct r8a66597 *r8a66597, break; case R8A66597_BULK: /* isochronous pipes may be used as bulk pipes */ - if (info->pipe > R8A66597_BASE_PIPENUM_BULK) + if (info->pipe >= R8A66597_BASE_PIPENUM_BULK) bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK; else bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC;