Home
last modified time | relevance | path

Searched hist:fb18c4894cce6efb05ac80b51eafbac229a5ab71 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/host/
H A Dohci-hcd.cfb18c4894cce6efb05ac80b51eafbac229a5ab71 Thu Mar 27 06:27:22 UTC 2025 Frank Wang <frank.wang@rock-chips.com> usb: host: ohci: fix null buffer pointer

During the USB enumeration phase, the buffer address passed by certain
commands such as usb_set_address() is NULL. Therefore, ensure that the
buffer is not empty when calling flush_dcache_buffer().

Without this patch, the panic occurred and the call trace was parsed as
below by running ./scripts/stacktrace.sh dump.txt

Call trace:
PC: [< 40201dc0 >] __asm_flush_dcache_range+0x20/0x3c uboot-nextdev/arch/arm/cpu/armv8/cache.S:144
LR: [< 4025cfc4 >] sohci_submit_job+0x518/0x7f4 uboot-nextdev/drivers/usb/host/ohci-hcd.c:964

Stack:
[< 40201dc0 >] __asm_flush_dcache_range+0x20/0x3c
[< 4025d4d8 >] submit_common_msg+0xe0/0x1ac
[< 4025dba4 >] ohci_submit_control_msg+0x554/0x51c
[< 4025b9e8 >] submit_control_msg+0x48/0x9c
[< 4021abb8 >] usb_control_msg+0x5c/0xbc
[< 4021b934 >] usb_setup_device+0xb8/0x120
[< 4025bc88 >] usb_scan_device+0x98/0x2a0

Change-Id: I467fe5a02f21ad06de43d34d75c052f5603f7ae3
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>