Skip to content
Snippets Groups Projects
user avatar
Christoph Hellwig authored
Keep returning NULL on failure instead of letting an ERR_PTR escape to
callers that don't expect it.

Link: https://lkml.kernel.org/r/20230503154526.1223095-2-hch@lst.de


Fixes: 66dabbb6 ("mm: return an ERR_PTR from __filemap_get_folio")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
Tested-by: default avatarDavid Howells <dhowells@redhat.com>
Cc: Marc Dionne <marc.dionne@auristor.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
58f5f669
History
Name Last commit Last update