Files
kernel_common_drivers/drivers/usb
he.he d8b266f7b2 usb: panic [1/1]
PD#SWPL-178364

Problem:
setenv otg_device 0;
saveenv
reboot
and panic
Because 0;  can cause otg_mode_string array
out of bounds.

Solution:
Replace sprintf and strcmp with snprintf and strncmp

Verify:
c3

Change-Id: I561d4d0af7dc1068a040919fd906aa0757c19604
Signed-off-by: he.he <he.he@amlogic.com>
2024-07-24 02:07:27 -07:00
..
2024-07-16 05:45:10 -07:00
2023-12-22 16:08:59 +08:00
2023-12-22 16:08:59 +08:00
2024-07-24 02:07:27 -07:00
2024-07-16 03:55:43 -07:00