summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-08 15:07:23 -0600
committerTom Rini <trini@konsulko.com>2025-04-08 15:07:23 -0600
commit9d9fbdab0e9664bff147109cc89ad2786f6ecd83 (patch)
treee40449aef26e8d0879b0fd0ee10cbcf1f5ad170d
parenta30b54462825843a9dcc46a17df6d57099f7b61a (diff)
parent3d1cc840a060cb2a00b4af0c70fc29e8c3cadf90 (diff)
Merge tag 'ubifixes-for-2025.07-rc1' of https://source.denx.de/u-boot/custodians/u-boot-ubi
ubi fixes for v2025.07-rc1 - ubi: fix bug creating partitions for non-existent volumes from Oskar Nilsson
-rw-r--r--drivers/mtd/ubi/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/part.c b/drivers/mtd/ubi/part.c
index 13d1f165c30..6c017eb7299 100644
--- a/drivers/mtd/ubi/part.c
+++ b/drivers/mtd/ubi/part.c
@@ -47,7 +47,7 @@ static int __maybe_unused part_get_info_ubi(struct blk_desc *dev_desc, int part_
*/
vol = ubi_get_volume_by_index(part_idx - 1);
if (!vol)
- return 0;
+ return -ENOENT;
snprintf(info->name, PART_NAME_LEN, vol->name);