mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
2a5de4ebc6
lfs_fs_size() can return more blocks than block_count during active writes due to copy-on-write blocks. This caused f_bavail to underflow to a large positive number. Add clamping to prevent this. Signed-off-by: Julian Oes <julian@oes.ch>