usb: gadget: FunctionFS: dereference ffs_dev conditionally
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Mon, 13 Jan 2014 15:41:22 +0000 (16:41 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:26:57 +0000 (07:26 +0200)
commit0fb0a5c55af8b2253add140174c9d6248ae4d056
treee3eefcecff80da58d4e7644d89e23c5e2835f833
parent03d8bc6bc945481cba836e89744b614729840501
usb: gadget: FunctionFS: dereference ffs_dev conditionally

ffs_dev->ffs_release_dev_callback should be accessed only if ffs_dev
is not NULL.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
drivers/usb/gadget/f_fs.c