]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: core: Fix tx/rx threshold settings
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 12 Apr 2022 01:33:47 +0000 (18:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 17:07:58 +0000 (19:07 +0200)
commit51169a9041004c86b0ec8094a20964f64219fbd2
tree2fb9970030d8ab827e58134102e87bbfff6449af
parent994008c1d67aa5ad6c06d323b8421977a5c1f670
usb: dwc3: core: Fix tx/rx threshold settings

The current driver logic checks against 0 to determine whether the
periodic tx/rx threshold settings are set, but we may get bogus values
from uninitialized variables if no device property is set. Properly
default these variables to 0.

Fixes: 66e431901c92 ("usb: dwc3: Check for ESS TX/RX threshold config")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/cccfce990b11b730b0dae42f9d217dc6fb988c90.1649727139.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c