diff options
Diffstat (limited to 'fs/ntfs/fs.c')
-rw-r--r-- | fs/ntfs/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/fs.c b/fs/ntfs/fs.c index 470f15c90..b81d6c031 100644 --- a/fs/ntfs/fs.c +++ b/fs/ntfs/fs.c @@ -80,7 +80,7 @@ ntfs_read(struct file * filp, char *buf, size_t count, loff_t *off) io.param=buf; io.size=count; error=ntfs_read_attr(ino,ino->vol->at_data,NULL,*off,&io); - if(error)return -error; + if(error && !io.size)return -error; *off+=io.size; return io.size; |