mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
staging/lustre/osc: Fix reverted condition in osc_lock_weight
When imprting clio simplification patch, the check for pbject got reversed by mistake when converting from if (obj == NULL) it somehow became (if (obj) which is obviously wrong, and so when it does hit, a crash was happening as result. Fix the condition and all if fine now. Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a6307ff9aa
commit
fbe0456482
1 changed files with 1 additions and 1 deletions
|
|
@ -699,7 +699,7 @@ unsigned long osc_ldlm_weigh_ast(struct ldlm_lock *dlmlock)
|
|||
|
||||
LASSERT(dlmlock->l_resource->lr_type == LDLM_EXTENT);
|
||||
obj = dlmlock->l_ast_data;
|
||||
if (obj) {
|
||||
if (!obj) {
|
||||
weight = 1;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue