summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-23 07:06:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-24 18:50:32 +0300
commit84e1326ffc6164c396e58170cc14c9a50e7eea2e (patch)
tree9021f3ff90e5cfac0b98588901a94c85190b6fbe /include
parent51ad579d64dd1c6c308d7c915da6a8f9c90355d7 (diff)
downloadlinux-84e1326ffc6164c396e58170cc14c9a50e7eea2e.tar.xz
usb: gadget: fix potential double-free in m66592_probe.
[ Upstream commit 44734a594196bf1d474212f38fe3a0d37a73278b ] m66592_free_request() is called under label "err_add_udc" and "clean_up", and m66592->ep0_req is not set to NULL after first free, leading to a double-free. Fix this issue by setting m66592->ep0_req to NULL after the first free. Fixes: 0f91349b89f3 ("usb: gadget: convert all users to the new udc infrastructure") Signed-off-by: Qiushi Wu <wu000273@umn.edu> Signed-off-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions