diff options
| author | 2022-01-01 01:21:38 +0800 | |
|---|---|---|
| committer | 2022-01-03 14:35:18 +0100 | |
| commit | 501e38a5531efbd77d5c73c0ba838a889bfc1d74 (patch) | |
| tree | 0073563c0f545334f19548610230eb723fd2aedf /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | usb: gadget: don't release an existing dev->buf (diff) | |
| download | linux-dev-501e38a5531efbd77d5c73c0ba838a889bfc1d74.tar.xz linux-dev-501e38a5531efbd77d5c73c0ba838a889bfc1d74.zip | |
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 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
