usb: gadget: f_fs: signedness bug in __ffs_func_bind_do_descs()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 9 Sep 2014 12:06:09 +0000 (15:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2014 10:29:24 +0000 (12:29 +0200)
commit6ed8a450f618ebca47b03c59c6975cfd76790542
tree3fe28db3e3a8998b37c8de82e82e9d26bef082c0
parent3842f8ec4ac6df95afbbed484d7701f2caf6bf86
usb: gadget: f_fs: signedness bug in __ffs_func_bind_do_descs()

commit 85b06f5e53d17c15844ef3cd45d0c7107f0ae45c upstream.

We need "idx" to be signed for the error handling to work.

Fixes: 6d5c1c77bbf9 ('usb: gadget: f_fs: fix the redundant ep files problem')
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_fs.c