Files
linux/drivers/usb/gadget
Prashanth K 8e812e9355 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: 40e89ff575 ("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]>
2025-03-03 10:12:14 +01:00
..