aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/common/debug.c
diff options
context:
space:
mode:
authorHangyu Hua <hbh25y@gmail.com>2022-01-01 01:21:38 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-03 14:35:18 +0100
commit501e38a5531efbd77d5c73c0ba838a889bfc1d74 (patch)
tree0073563c0f545334f19548610230eb723fd2aedf /drivers/usb/common/debug.c
parent89f3594d0de58e8a57d92d497dea9fee3d4b9cda (diff)
usb: gadget: clear related members when goto fail
dev->config and dev->hs_config and dev->dev need to be cleaned if dev_config fails to avoid UAF. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Link: https://lore.kernel.org/r/20211231172138.7993-3-hbh25y@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/common/debug.c')
0 files changed, 0 insertions, 0 deletions