ubi fixes for v2025.07-rc1

- ubi: fix bug creating partitions for non-existent volumes
  from Oskar Nilsson
This commit is contained in:
Tom Rini 2025-04-08 15:07:23 -06:00
commit 9d9fbdab0e

View file

@ -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); vol = ubi_get_volume_by_index(part_idx - 1);
if (!vol) if (!vol)
return 0; return -ENOENT;
snprintf(info->name, PART_NAME_LEN, vol->name); snprintf(info->name, PART_NAME_LEN, vol->name);