Skip to content
Commit 0878263b authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: composite: avoid kernel oops with bad gadgets



If a gadget driver loaded to a Superspeed-capable
peripheral controller, using a Superspeed cable,
doesn't provide Superspeed descriptors, we will get
a NULL pointer dereference.

In order to avoid that situation, we will try to
find any valid descriptors we can. If no set of
descriptors is passed in, then we'll let that gadget
oops anyhow.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent ce046d32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment