diff options
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r-- | fs/fuse/dir.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index fead7f49e2ca..9a6075de961f 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -773,7 +773,12 @@ static int fuse_readdir(struct file *file, void *dstbuf, filldir_t filldir) | |||
773 | struct page *page; | 773 | struct page *page; |
774 | struct inode *inode = file->f_dentry->d_inode; | 774 | struct inode *inode = file->f_dentry->d_inode; |
775 | struct fuse_conn *fc = get_fuse_conn(inode); | 775 | struct fuse_conn *fc = get_fuse_conn(inode); |
776 | struct fuse_req *req = fuse_get_request(fc); | 776 | struct fuse_req *req; |
777 | |||
778 | if (is_bad_inode(inode)) | ||
779 | return -EIO; | ||
780 | |||
781 | req = fuse_get_request(fc); | ||
777 | if (!req) | 782 | if (!req) |
778 | return -EINTR; | 783 | return -EINTR; |
779 | 784 | ||