usb:composite: clear the whole common buffer
authorJeroen Hofstee <jeroen@myspectrum.nl>
Mon, 9 Jun 2014 13:28:59 +0000 (15:28 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 25 Jun 2014 20:42:07 +0000 (22:42 +0200)
commit933611f7bbeb1b29218dca74cf1acfa910006cef
treedc6be457d86024f3827a1076723cb884995c5a2d
parent198c5f998a1fbbdb5cfe6035f8c890ffb1526d8e
usb:composite: clear the whole common buffer

Since the struct fsg_common is calloced, reset it completely
with zero's when reused. While at it, make checkpatch happy.

cc: Lukasz Majewski <l.majewski@samsung.com>
cc: Piotr Wilczek <p.wilczek@samsung.com>
cc: Kyungmin Park <kyungmin.park@samsung.com>
cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/f_mass_storage.c