diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 566a31d0397..5abe712726c 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -1159,7 +1159,7 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence) */ ff->ff_currentcluster = cluster; - if (position < clustersize) + if (position <= clustersize) { break; }