diff --git a/fs/fuse/file.c b/fs/fuse/file.c index f33fbce86ae0..fe6df701da24 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -902,6 +902,9 @@ static int fuse_read_folio(struct file *file, struct folio *folio) if (fuse_is_bad(inode)) goto out; + if (!file) + goto out; + err = fuse_do_readpage(file, page); fuse_invalidate_atime(inode); out: