usb:configfs:Set udc_name NULL if attach failed
authora17671 <a17671@motorola.com>
Thu, 17 Oct 2019 09:49:51 +0000 (17:49 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:04 +0000 (17:37 +0800)
commit025ac1d0665ee00913a87232920ac5fbd8c98c5c
tree8bea40188cff2155ad90ab8ad13a42787c336a9a
parentcb53c84e01f4353da8f30974e247733d1d612940
usb:configfs:Set udc_name NULL if attach failed

If the probing of UDC controller failed
udc_name shall be NULL to avoid double unregistration
and the panic
It could happen in some corner case

Change-Id: I2e6e4168a505b86d8f1b57db53be91acc608ee97
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438349
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/usb/gadget/configfs.c