Message ID | 20201011033627.VInQu4bdg%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-validate-inode-in-mapping_set_error.patch added to -mm tree | expand |
--- a/include/linux/pagemap.h~mm-validate-inode-in-mapping_set_error +++ a/include/linux/pagemap.h @@ -54,7 +54,8 @@ static inline void mapping_set_error(str __filemap_set_wb_err(mapping, error); /* Record it in superblock */ - errseq_set(&mapping->host->i_sb->s_wb_err, error); + if (mapping->host) + errseq_set(&mapping->host->i_sb->s_wb_err, error); /* Record it in flags for now, for legacy callers */ if (error == -ENOSPC)