diff options
Diffstat (limited to 'fs/fat/fat.c')
-rw-r--r-- | fs/fat/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 9ad18f96ff..465a6875ed 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -54,7 +54,7 @@ static int disk_read(__u32 block, __u32 nr_blocks, void *buf) ret = blk_dread(cur_dev, cur_part_info.start + block, nr_blocks, buf); - if (nr_blocks && ret == 0) + if (ret != nr_blocks) return -1; return ret; |