usb: gadget: FunctionFS: dereference ffs_dev conditionally
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Mon, 13 Jan 2014 15:49:35 +0000 (16:49 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 18 Feb 2014 16:52:55 +0000 (10:52 -0600)
commitea365922f9eb2fb6fc0486f521748f19bfd5c502
treed3eee34aa989a92453b15af6a3ec78d11f704738
parentde9db572fe5135bb2cf5bb2d8520f99a56b21d9b
usb: gadget: FunctionFS: dereference ffs_dev conditionally

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

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c