]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
usb: m66592-udc: Fixed bufnum of Bulk
authorYusuke Goda <yusuke.goda.sx@renesas.com>
Mon, 21 Feb 2011 03:55:32 +0000 (12:55 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Feb 2011 19:33:00 +0000 (11:33 -0800)
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/m66592-udc.c

index 51b19f3027e7bb94b37a2771b36f646837479ae5..084aa080a2d520a8bab933f098ab5f9048f45283 100644 (file)
@@ -258,7 +258,7 @@ static int pipe_buffer_setting(struct m66592 *m66592,
                break;
        case M66592_BULK:
                /* isochronous pipes may be used as bulk pipes */
-               if (info->pipe > M66592_BASE_PIPENUM_BULK)
+               if (info->pipe >= M66592_BASE_PIPENUM_BULK)
                        bufnum = info->pipe - M66592_BASE_PIPENUM_BULK;
                else
                        bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC;