aboutsummaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorDouglas Anderson <[email protected]>2015-11-20 09:06:27 -0800
committerFelipe Balbi <[email protected]>2015-12-15 09:12:41 -0600
commit4a065c7bdbec9536f7b899241b125b9c3b5ba97a (patch)
tree36d4022995b2c1647664716c35daf44d44a19618 /scripts/stackusage
parent98bfb39466954c69d2a448e6ddcab6d91cd48e25 (diff)
usb: dwc2: host: Add missing spinlock in dwc2_hcd_reset_func()
The dwc2_hcd_reset_func() function is only ever called directly by a delayed work function. As such no locks are already held when the function is called. Doing a read-modify-write of CPU registers and setting fields in the main hsotg data structure is a bad idea without locks. Let's add locks. The bug was found by code inspection only. It turns out that the dwc2_hcd_reset_func() is only ever called today if the "host_support_fs_ls_low_power" parameter is enabled and no code in mainline enables that parameter. Thus no known issues in mainline are fixed by this patch, but it's still probably wise to fix the function. Signed-off-by: Douglas Anderson <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions