diff options
| author | Prashanth K <[email protected]> | 2025-02-24 08:56:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-03-03 09:12:14 +0000 |
| commit | 8e812e9355a6f14dffd54a33d951ca403b9732f5 (patch) | |
| tree | 5403343139736644311034042f553edbc93f9271 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | xhci: Restrict USB4 tunnel detection for USB3 devices to Intel hosts (diff) | |
| download | kernel-8e812e9355a6f14dffd54a33d951ca403b9732f5.tar.gz kernel-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 <[email protected]>
Fixes: 40e89ff5750f ("usb: gadget: Set self-powered based on MaxPower and bmAttributes")
Signed-off-by: Prashanth K <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
