]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: sf: Fix sf probe crash
authorWeizhao Ouyang <o451686892@gmail.com>
Thu, 4 Jan 2024 11:46:19 +0000 (11:46 +0000)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 14 Apr 2024 06:49:39 +0000 (08:49 +0200)
commit85f3d3de8d3198f216dd3c146a6db6eae3cfff03
treed52eb5d1aa4454ef654ae9b328f60959030a72ad
parent266603d8c39cf4d194e2cfe8d86d870590e150e0
cmd: sf: Fix sf probe crash

Handle the return value of spi_flash_probe_bus_cs() to avoid sf probe
crashes.

Link: https://lore.kernel.org/all/20240104114619.280513-1-o451686892@gmail.com
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
cmd/sf.c