diff options
author | 2022-07-18 19:00:52 +0300 | |
---|---|---|
committer | 2022-07-27 14:38:13 +0200 | |
commit | c3ffc9c4ca44bfe9562166793d133e1fb0630ea6 (patch) | |
tree | e95f7bd26c271141dde8611e54382904da557bca /include/linux/usb | |
parent | usb/chipidea: fix repeated words in comments (diff) | |
download | linux-c3ffc9c4ca44.tar.gz linux-c3ffc9c4ca44.tar.bz2 linux-c3ffc9c4ca44.zip |
usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable()
If 'ep' is NULL, result of ep_to_cdns3_ep(ep) is invalid pointer
and its dereference with priv_ep->cdns3_dev may cause panic.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Andrey Strachuk <strochuk@ispras.ru>
Link: https://lore.kernel.org/r/20220718160052.4188-1-strochuk@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions