usb: gadget: f_fs: fix error handling
authorRobert Baldyga <r.baldyga@samsung.com>
Fri, 27 Sep 2013 10:28:54 +0000 (12:28 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:04:22 +0000 (09:04 -0500)
commit8854894c040cd68b463dccf267308250b336df40
tree856081a87ef56d5aac17b244939a68afe585a6fb
parent4fc4b274f9b3b5f18896a069e5f9f8dd8f0d450a
usb: gadget: f_fs: fix error handling

This patch add missing error check in ffs_func_bind() function, after
ffs_do_descs() function call for high speed descriptors. Without this
check it's possible that the module will try dereference incorrect
pointer.

[ balbi@ti.com : removed trailing empty line ]

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c