1 From foo@baz Wed Dec 6 17:39:55 CET 2017
2 From: Vincent Pelletier <plr.vincent@gmail.com>
3 Date: Thu, 15 Dec 2016 12:47:42 +0000
4 Subject: usb: gadget: f_fs: Fix ExtCompat descriptor validation
6 From: Vincent Pelletier <plr.vincent@gmail.com>
9 [ Upstream commit 354bc45bf329494ef6051f3229ef50b9e2a7ea2a ]
11 Reserved1 is documented as expected to be set to 0, but this test fails
12 when it it set to 0. Reverse the condition.
14 Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
15 Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
16 Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 drivers/usb/gadget/function/f_fs.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 --- a/drivers/usb/gadget/function/f_fs.c
23 +++ b/drivers/usb/gadget/function/f_fs.c
24 @@ -2263,7 +2263,7 @@ static int __ffs_data_do_os_desc(enum ff
26 if (len < sizeof(*d) ||
27 d->bFirstInterfaceNumber >= ffs->interfaces_count ||
31 for (i = 0; i < ARRAY_SIZE(d->Reserved2); ++i)