diff options
author | Andrey Strachuk <[email protected]> | 2022-07-18 19:00:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-27 14:38:13 +0200 |
commit | c3ffc9c4ca44bfe9562166793d133e1fb0630ea6 (patch) | |
tree | e95f7bd26c271141dde8611e54382904da557bca /net/unix/af_unix.c | |
parent | fe3cc0cebe6091675c8bacd94e232a3203b939b8 (diff) |
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 <[email protected]>
Signed-off-by: Andrey Strachuk <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions