1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-24 19:15:21 +01:00
Files
u-boot-megous/drivers
Hanyuan Zhao 9578e74571 riscv: add NULL check before calling strlen in the riscv cpu's get_desc()
Without the NULL check, if the devicetree that u-boot loads does not have a
compatible property then a store access fault will be raised and force the
machine to reset, due to the NULL pointer we passed to strlen. This commit
adds this check and will return -ENOSPC to indicate the get_desc failed.

Signed-off-by: Hanyuan Zhao <zhaohy22@mails.tsinghua.edu.cn>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2024-05-14 18:39:57 +08:00
..
2023-11-07 14:50:51 -05:00
2024-05-05 11:21:39 -03:00
2024-04-26 08:28:35 +03:00
2024-05-05 11:21:39 -03:00