]> git.itanic.dy.fi Git - linux-stable/commit
netfs: Fix a NULL vs IS_ERR() check in netfs_perform_write()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 10 Jan 2024 18:54:42 +0000 (21:54 +0300)
committerDavid Howells <dhowells@redhat.com>
Mon, 22 Jan 2024 21:58:35 +0000 (21:58 +0000)
commit843609df0be792991b3c4a720d6be4828d48dec4
tree6e77a0eeda03a8e86741236e4f28033578adef46
parent3be0b3ed1d76c6703b9ee482b55f7e01c369cc68
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 <dan.carpenter@linaro.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/29fb1310-8e2d-47ba-b68d-40354eb7b896@moroto.mountain/
fs/netfs/buffered_write.c