]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Fix a NULL vs IS_ERR() bug in gfs2_find_jhead()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 12 Mar 2025 08:33:03 +0000 (11:33 +0300)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 12 Mar 2025 12:00:28 +0000 (13:00 +0100)
commit951d701ef1bbce4c5f88466f5e829fb3d5735856
tree21f0542848c04ce36aba2d5eb6aa173c9ec7de57
parent0776a508d1d4480d23873ccbee336123c992ff6e
gfs2: Fix a NULL vs IS_ERR() bug in gfs2_find_jhead()

The filemap_grab_folio() function doesn't return NULL, it returns error
pointers.  Fix the check to match.

Fixes: 40829760096d ("gfs2: Convert gfs2_find_jhead() to use a folio")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/lops.c