]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ext4: fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Oct 2020 11:22:32 +0000 (14:22 +0300)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Dec 2020 18:30:32 +0000 (13:30 -0500)
commitbc18546bf68e47996a359d2533168d5770a22024
tree6662d764d18e9b3a5f9b59aea754a10c4b7f5cec
parentc9200760da8a728eb9767ca41a956764b28c1310
ext4: fix an IS_ERR() vs NULL check

The ext4_find_extent() function never returns NULL, it returns error
pointers.

Fixes: 44059e503b03 ("ext4: fast commit recovery path")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20201023112232.GB282278@mwanda
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/extents.c