staging/lustre: Unbreak ll_prep_inode iget result check
authorOleg Drokin <green@linuxhacker.ru>
Wed, 2 Mar 2016 13:25:39 +0000 (08:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 23:23:00 +0000 (15:23 -0800)
commit4ae51a74f048c820ff85ff68cace8d73bc51b728
treeaa6d73886c300ca9b971de5addddf69bbbbd163d
parent2faedcd5b3d0838e8a612e3f7fd70d84113360dd
staging/lustre: Unbreak ll_prep_inode iget result check

commit 020ecc6f3229 ("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>
drivers/staging/lustre/lustre/llite/llite_lib.c