[PATCH] ubi: fix bug creating partitions for non-existent volumes

Alexey Romanov avromanov at salutedevices.com
Tue Mar 25 20:14:10 CET 2025


> The part_get_info_ubi() function was incorrectly returning 0 (success)
> when a UBI volume was not found for a given partition index. This caused
> the part_create_block_devices() function in blk-uclass.c to continue
> creating devices for non-existent partitions up to MAX_SEARCH_PARTITIONS

> Fix the issue by returning -1 when a volume is not found, signaling to
> the part_create_block_devices() function that no more valid volumes
> exist.

Hello, Oskar!
Thanks for your fix. It is correct.

Reviewed-by: Alexey Romanov <avromanov at salutedevices.com>


More information about the U-Boot mailing list