diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2015-05-20 16:52:40 +0300 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-07-21 04:12:42 +0300 |
commit | 00bd69b2ec9d3d4fabb1d00fb90756fe22c3ba4d (patch) | |
tree | 6d558c1bb5e53fe6a1670c488a321013345a5c7e /security | |
parent | 71e331989c7b5bdf5b910d718ce206f431323039 (diff) | |
download | linux-00bd69b2ec9d3d4fabb1d00fb90756fe22c3ba4d.tar.xz |
usb: gadget: f_fs: add extra check before unregister_gadget_item
[ Upstream commit f14e9ad17f46051b02bffffac2036486097de19e ]
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 <rui.silva@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions