Files
android_kernel_motorola_sm6225/drivers
Yonghua Yan a4fd173df1 usb: configfs: skip unregister gadget in secure
There will be gadget driver unregister twice in USB secure
when try to set the UDC to none from userspace, which will cause
kernel panic in 4.9 kernel version, as there is a feature
about pending gadget driver list being added in this version.

As a solution, make sure gadget driver unregister or probe only
once over secure mode entry or usb configure from userspace.

Kernel BUG at ffffff8093067140 [verbose debug info unavailable]
Internal error: Accessing user space memory outside uaccess.h
routines: 96000045 [#1] PREEMPT SMP
PC is at usb_gadget_unregister_driver+0x88/0xf0
LR is at usb_gadget_unregister_driver+0x30/0xf0

Change-Id: I77dfbd4162c7a4d96bbe297Montana4c99e876f5cf88
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287125
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1338869
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449121
Reviewed-on: https://gerrit.mot.com/1511639
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:06 -03:00
..
…
…
…
…
…
2021-09-26 22:35:51 -07:00
2023-06-01 00:47:06 -03:00
2022-11-04 02:36:16 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-06-01 00:47:06 -03:00
…
…
2023-01-23 12:01:43 +05:30
2023-06-01 00:47:05 -03:00
…
…
…
…
…
2023-06-01 00:47:05 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-06-01 00:47:05 -03:00
…
…
…
…
2023-06-01 00:47:06 -03:00
…
…
…
…
…
…
…
…
…