diff options
author | 2025-02-24 14:26:04 +0530 | |
---|---|---|
committer | 2025-03-03 10:12:14 +0100 | |
commit | 8e812e9355a6f14dffd54a33d951ca403b9732f5 (patch) | |
tree | 5403343139736644311034042f553edbc93f9271 /scripts/lib/kdoc/kdoc_output.py | |
parent | xhci: Restrict USB4 tunnel detection for USB3 devices to Intel hosts (diff) | |
download | linux-rng-8e812e9355a6f14dffd54a33d951ca403b9732f5.tar.xz linux-rng-8e812e9355a6f14dffd54a33d951ca403b9732f5.zip |
usb: gadget: Check bmAttributes only if configuration is valid
If the USB configuration is not valid, then avoid checking for
bmAttributes to prevent null pointer deference.
Cc: stable <stable@kernel.org>
Fixes: 40e89ff5750f ("usb: gadget: Set self-powered based on MaxPower and bmAttributes")
Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250224085604.417327-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions