diff options
author | Prashanth K <prashanth.k@oss.qualcomm.com> | 2025-02-24 11:56:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-03 12:12:14 +0300 |
commit | 8e812e9355a6f14dffd54a33d951ca403b9732f5 (patch) | |
tree | 5403343139736644311034042f553edbc93f9271 /scripts/extract-fwblobs | |
parent | 487cfd4a8e3dc42d34a759017978a4edaf85fce0 (diff) | |
download | linux-8e812e9355a6f14dffd54a33d951ca403b9732f5.tar.xz |
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/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions