usb:Restore linked_func list in none-secure mode
authora17671 <a17671@motorola.com>
Mon, 18 Nov 2019 07:56:16 +0000 (15:56 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:08 +0000 (17:37 +0800)
commit6606b5eeb5f803d9a1c53383219fce1fcad128ee
treee6dafaa4be6f0597fa97ccccf9ed825178a40d78
parent54eaf08e969a60d35f89d7fc448f74c9256b0d50
usb:Restore linked_func list in none-secure mode

In none-secure mode, there is still
A low chance of gadget NULL case,
Restore the binded functions list back to
Linked_func list, so next time unbind functions
Could be handled correctly without memory corruption
This is a Samsung platform only issue

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