diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 8dededd80fe2fa6747699c70b81d211b77d49ff0..a0995eb2dc232c2b7ddc79df644482a9a651c9e0 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c @@ -299,7 +299,7 @@ ext2_readdir (struct file * filp, void * dirent, filldir_t filldir) "bad page in #%lu", inode->i_ino); filp->f_pos += PAGE_CACHE_SIZE - offset; - return -EIO; + return PTR_ERR(page); } kaddr = page_address(page); if (unlikely(need_revalidate)) {