Commit bed2cc4
hostfs: Fix the NULL vs IS_ERR() bug for __filemap_get_folio()
The __filemap_get_folio() function returns error pointers.
It never returns NULL. So use IS_ERR() to check it.
Fixes: 1da8661 ("fs: Convert aops->write_begin to take a folio")
Signed-off-by: ZhangPeng <[email protected]>
Acked-by: Johannes Berg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>1 parent 2f681ba commit bed2cc4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
| 475 | + | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| |||
0 commit comments