]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: composite: fix NULL pointer when a non standard request is received
authorChristophe Kerello <christophe.kerello@st.com>
Thu, 15 Mar 2018 08:34:17 +0000 (09:34 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 26 Apr 2018 13:15:07 +0000 (15:15 +0200)
commit67a2ae75c788bbb264fce8138ba4e94d1ec6d540
tree1a67ee05739ce52a5b915fccaca556b17c68c264
parentb6120c2db4c42c4b100c105d59ce409707f159ae
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: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/usb/gadget/composite.c