summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-22 23:06:25 -0500
committerSasha Levin <sashal@kernel.org>2020-06-29 20:07:53 -0400
commit4e26dd5e3f6746efbc681824360e680b02b76174 (patch)
treeed97d43f89296c664791effc1b54e3f4c0c7372e /include
parentc16f825fb0a34439414aab5b8f4a30b35656300e (diff)
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