]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Don't return NULL from gfs2_inode_lookup
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 9 Jun 2020 12:33:11 +0000 (14:33 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 30 Jun 2020 11:04:45 +0000 (13:04 +0200)
commit21cd8f4ac115077e051ddedd5b0015339514824a
tree5ec4fcdc9b500802ddb6916b3ebab9acc1fbcf22
parent88732dd384b9767583d52f7ebc7696d1966fdb10
gfs2: Don't return NULL from gfs2_inode_lookup

Callers expect gfs2_inode_lookup to return an inode pointer or ERR_PTR(error).
Commit fe2ca5d3afb3 caused it to return NULL instead of ERR_PTR(-ESTALE) in
some cases.  Fix that.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: fe2ca5d3afb3 ("gfs2: Move inode generation number check into gfs2_inode_lookup")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/inode.c