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 <stable@kernel.org>
Fixes: 40e89ff575 ("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>
2025-03-03 10:12:14 +01:00
..
function usb: gadget: u_ether: Set is_suspend flag if remote wakeup fails 2025-02-19 15:18:41 +01:00
legacy USB: gadget: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
udc usb: gadget: core: flush gadget workqueue after device removal 2025-02-14 09:25:12 +01:00
composite.c usb: gadget: Check bmAttributes only if configuration is valid 2025-03-03 10:12:14 +01:00
config.c usb: Reorganize kerneldoc parameter names 2024-10-04 15:14:23 +02:00
configfs.c usb: gadget: configfs: Ignore trailing LF for user strings to cdev 2024-12-23 18:50:53 +01:00
configfs.h
epautoconf.c
functions.c
Kconfig usb: gadget: midi2: Reverse-select at the right place 2025-01-07 11:42:22 +01:00
Makefile
u_f.c usb: gadget: function: move u_f.h to include/linux/usb/func_utils.h 2024-09-03 09:57:08 +02:00
u_os_desc.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
usbstring.c drivers/usb/gadget: refactor min with min_t 2024-11-13 15:09:50 +01:00