diff options
| author | Dan Carpenter <[email protected]> | 2024-01-10 18:54:42 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2024-01-22 21:58:35 +0000 |
| commit | 843609df0be792991b3c4a720d6be4828d48dec4 (patch) | |
| tree | 6e77a0eeda03a8e86741236e4f28033578adef46 /net/unix/garbage.c | |
| parent | netfs, fscache: Prevent Oops in fscache_put_cache() (diff) | |
| download | kernel-843609df0be792991b3c4a720d6be4828d48dec4.tar.gz kernel-843609df0be792991b3c4a720d6be4828d48dec4.zip | |
netfs: Fix a NULL vs IS_ERR() check in netfs_perform_write()
The netfs_grab_folio_for_write() function doesn't return NULL, it returns
error pointers. Update the check accordingly.
Fixes: c38f4e96e605 ("netfs: Provide func to copy data to pagecache for buffered write")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David Howells <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
