Commit 73187a06 authored by Jun Li's avatar Jun Li
Browse files

MLK-19101 usb: gadget: update os_desc_config when add config

Always use the new added config for os_desc_config to fix cdev->
os_desc_config may miss set in case we restart usb gadget driver.
Signed-off-by: default avatarLi Jun <>
(cherry picked from commit e8efb32e9b7a4fe45c7f21e86052c7f5bcdb6695)
parent d4ccaa7c
......@@ -502,8 +502,8 @@ int usb_add_config(struct usb_composite_dev *cdev,
if (os_desc_config)
cdev->os_desc_config = os_desc_config;
os_desc_config = config;
cdev->os_desc_config = os_desc_config;
if (status)
Markdown is supported
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