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)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 14:51:21 +0000 (09:51 -0500)
commit85b06f5e53d17c15844ef3cd45d0c7107f0ae45c
tree622b0f357dba7e623ed2b3cb205041e42223786c
parent13443799b559cde593826091a7de135483b245e5
usb: gadget: f_fs: signedness bug in __ffs_func_bind_do_descs()

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>
drivers/usb/gadget/function/f_fs.c