usb:configfs:Set udc_name NULL if attach failed
authora17671 <a17671@motorola.com>
Thu, 17 Oct 2019 09:49:51 +0000 (17:49 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:00 +0000 (20:24 +0300)
commitf1babc739347897c1213d6518fb0cd534ae06c53
tree3a3c450792512db85de2c846f9dca64da1f0cf66
parente2b9880d7ca6021e45df823d8664f99546abddf9
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