aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJisheng Zhang <[email protected]>2023-06-28 00:20:18 +0800
committerGreg Kroah-Hartman <[email protected]>2023-07-25 17:39:58 +0200
commite835c0a4e23c38531dcee5ef77e8d1cf462658c7 (patch)
tree966be6863702c831e125ded971154d0fc5edf185 /lib/test_fortify/write_overflow-strncpy-src.c
parent71c47ad8920ef19d6545202191252a50c03aca30 (diff)
usb: dwc3: don't reset device side if dwc3 was configured as host-only
Commit c4a5153e87fd ("usb: dwc3: core: Power-off core/PHYs on system_suspend in host mode") replaces check for HOST only dr_mode with current_dr_role. But during booting, the current_dr_role isn't initialized, thus the device side reset is always issued even if dwc3 was configured as host-only. What's more, on some platforms with host only dwc3, aways issuing device side reset by accessing device register block can cause kernel panic. Fixes: c4a5153e87fd ("usb: dwc3: core: Power-off core/PHYs on system_suspend in host mode") Cc: stable <[email protected]> Signed-off-by: Jisheng Zhang <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions