mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 13:49:36 +07:00
staging/lustre: Unbreak ll_prep_inode iget result check
commit 020ecc6f32
("staging: lustre: llite: Remove IS_ERR tests")
managed to break one of the converted checks by losing a dereference
causing the condition to be wrong and hence leading
to a crash later on in case of actual error.
IS_ERR_OR_NULL(*inode) got converted into !inode.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
CC: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2faedcd5b3
commit
4ae51a74f0
@ -1972,7 +1972,7 @@ int ll_prep_inode(struct inode **inode, struct ptlrpc_request *req,
|
||||
*inode = ll_iget(sb, cl_fid_build_ino(&md.body->fid1,
|
||||
sbi->ll_flags & LL_SBI_32BIT_API),
|
||||
&md);
|
||||
if (!inode) {
|
||||
if (!*inode) {
|
||||
#ifdef CONFIG_FS_POSIX_ACL
|
||||
if (md.posix_acl) {
|
||||
posix_acl_release(md.posix_acl);
|
||||
|
Loading…
Reference in New Issue
Block a user