fix: also assert inside lfs_bd_read

This commit is contained in:
Joakim Plate
2025-08-12 16:29:31 +02:00
committed by GitHub
parent 8c7b6b26e6
commit 11cecd079c

1
lfs.c
View File

@ -93,6 +93,7 @@ static int lfs_bd_read(lfs_t *lfs,
// bypass cache?
diff = lfs_aligndown(diff, lfs->cfg->read_size);
int err = lfs->cfg->read(lfs->cfg, block, off, data, diff);
LFS_ASSERT(err <= 0);
if (err) {
return err;
}