usb: gadget: FunctionFS: Fix missing braces in parse_opts
authorBenoit Goby <benoit@android.com>
Wed, 9 Jan 2013 03:57:09 +0000 (19:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jan 2013 04:49:01 +0000 (20:49 -0800)
commitcf8c21513eadeb9a3edf87e63975bdab60bcf657
tree1d7d5b7cea1f7e0f645d71bf8643abd36cd76c79
parentbda2b180545b2ef586658ed5c3312cb947a2a6c9
usb: gadget: FunctionFS: Fix missing braces in parse_opts

commit b810075002c9f25a6da83cecda39d789000a04a9 upstream.

Add missing braces around an if block in ffs_fs_parse_opts. This broke
parsing the uid/gid mount options and causes mount to fail when using
uid/gid. This has been introduced by commit b9b73f7c (userns: Convert usb
functionfs to use kuid/kgid where appropriate) in 3.7.

Signed-off-by: Benoit Goby <benoit@android.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/f_fs.c