usb: gadget: f_fs: Fix ExtCompat descriptor validation
authorVincent Pelletier <plr.vincent@gmail.com>
Thu, 15 Dec 2016 12:47:42 +0000 (12:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:50 +0000 (22:01 +0100)
commit5eb97be8798189ee1080b225d0c8f14f54736bca
treec600faffa22cb32fb64fa12241c461f776daba4e
parent7468e767d8f2115427f2066203e5262f5dee8c5c
usb: gadget: f_fs: Fix ExtCompat descriptor validation

[ Upstream commit 354bc45bf329494ef6051f3229ef50b9e2a7ea2a ]

Reserved1 is documented as expected to be set to 0, but this test fails
when it it set to 0. Reverse the condition.

Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_fs.c