Skip to content
Snippets Groups Projects
Commit d57ed4d9 authored by Christophe Kerello's avatar Christophe Kerello Committed by Marek Vasut
Browse files

usb: gadget: composite: fix NULL pointer when a non standard request is received


In case usb configuration is unknown (cdev->config == NULL), non standard
request should not be processed.
Remove also the cdev->config check below which will never happen.

This issue was seen using ums feature.

Signed-off-by: default avatarChristophe Kerello <christophe.kerello@st.com>
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent 003659bd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment