]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d6645781429b7eb3e198a127b6849c7a3644842
treeaa6d73886c300ca9b971de5addddf69bbbbd163d
parent6c76768778293d930f5d8e28f571875ee479d429
staging/lustre: Unbreak ll_prep_inode iget result check

commit fac82a1001fe ("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