usb:configfs:Set udc_name NULL if attach failed
authora17671 <a17671@motorola.com>
Thu, 17 Oct 2019 09:49:51 +0000 (17:49 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:13 +0000 (17:32 +0800)
commitb5f6b4faf26b353a5ad0528f9c65b90ad1aac1bb
tree9b5fafac692babb8fa207d0e8ff72dae69eec30d
parentb0d48cd99913f00a2723fd2f125e4f287e72354a
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