aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorChris Wulff <[email protected]>2024-07-24 21:04:20 -0400
committerGreg Kroah-Hartman <[email protected]>2024-07-31 10:39:21 +0200
commit973a57891608a98e894db2887f278777f564de18 (patch)
tree69124a0e99173e1e540cac89ff568caa7ba8bcf9 /scripts/gdb
parentafdcfd3d6fcdeca2735ca8d994c5f2d24a368f0a (diff)
usb: gadget: core: Check for unset descriptor
Make sure the descriptor has been set before looking at maxpacket. This fixes a null pointer panic in this case. This may happen if the gadget doesn't properly set up the endpoint for the current speed, or the gadget descriptors are malformed and the descriptor for the speed/endpoint are not found. No current gadget driver is known to have this problem, but this may cause a hard-to-find bug during development of new gadgets. Fixes: 54f83b8c8ea9 ("USB: gadget: Reject endpoints with 0 maxpacket value") Cc: [email protected] Signed-off-by: Chris Wulff <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions