From: Rui Miguel Silva Date: Wed, 20 May 2015 13:52:40 +0000 (+0100) Subject: usb: gadget: f_fs: add extra check before unregister_gadget_item X-Git-Tag: omap-for-v4.2/fixes-rc1^2~90^2~16^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f14e9ad17f46051b02bffffac2036486097de19e;p=pandora-kernel.git usb: gadget: f_fs: add extra check before unregister_gadget_item ffs_closed can race with configfs_rmdir which will call config_item_release, so add an extra check to avoid calling the unregister_gadget_item with an null gadget item. Signed-off-by: Rui Miguel Silva Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed