[PATCH] cmd: bcb: Fix segfault on invalid block device
Mattijs Korpershoek
mkorpershoek at baylibre.com
Tue Aug 6 11:59:54 CEST 2024
Hi,
On Wed, 24 Jul 2024 11:51:06 +0200, Mattijs Korpershoek wrote:
> When blk_get_dev() fails, block NULL and gets de-referenced in
> the error path by a printf(), resulting in a crash.
>
> This can be reproduced on sandbox with:
>
> $ ./u-boot --command "bcb load mmc 0 0"
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[1/1] cmd: bcb: Fix segfault on invalid block device
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/d7b5ddf0def85a7c536c45a3a0a1d3a50a150646
--
Mattijs
More information about the U-Boot
mailing list