diff options
| author | ZhangPeng <zhangpeng362@huawei.com> | 2024-11-04 20:34:40 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:03:04 +0100 |
| commit | f888356886be46922dba737d65087df607bd1a46 (patch) | |
| tree | 61e251ce621c70d57285cff6f8096608f5462a98 /fs/nfs/write.c | |
| parent | fb014a3284c43f53e3ff805db8d6b165d8fe586a (diff) | |
| download | linux-f888356886be46922dba737d65087df607bd1a46.tar.gz linux-f888356886be46922dba737d65087df607bd1a46.tar.bz2 linux-f888356886be46922dba737d65087df607bd1a46.zip | |
hostfs: Fix the NULL vs IS_ERR() bug for __filemap_get_folio()
[ Upstream commit bed2cc482600296fe04edbc38005ba2851449c10 ]
The __filemap_get_folio() function returns error pointers.
It never returns NULL. So use IS_ERR() to check it.
Fixes: 1da86618bdce ("fs: Convert aops->write_begin to take a folio")
Signed-off-by: ZhangPeng <zhangpeng362@huawei.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs/write.c')
0 files changed, 0 insertions, 0 deletions
