diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index b9a60c43b61a..d9bbea1e87d2 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1181,7 +1181,8 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov, | |||
1181 | *ppos = pos + retval; | 1181 | *ppos = pos + retval; |
1182 | } | 1182 | } |
1183 | file_accessed(filp); | 1183 | file_accessed(filp); |
1184 | goto out; | 1184 | if (retval != 0) |
1185 | goto out; | ||
1185 | } | 1186 | } |
1186 | 1187 | ||
1187 | retval = 0; | 1188 | retval = 0; |