From 382afc18c20823445d2155a77808c502919faf6a Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Fri, 5 Sep 2014 18:36:31 +0400 Subject: [PATCH] LU-5592 ofd: fix incorrect check for NULL Fix incorrect check for NULL in ofd_version_get_check() Signed-off-by: Dmitry Eremin Change-Id: Ia671f86ab051eafa5336ba18f0378cdac846f0c5 Reviewed-on: http://review.whamcloud.com/11773 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/ofd/ofd_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ofd/ofd_objects.c b/lustre/ofd/ofd_objects.c index 9ce41e4..b6fcd4a 100644 --- a/lustre/ofd/ofd_objects.c +++ b/lustre/ofd/ofd_objects.c @@ -67,7 +67,7 @@ int ofd_version_get_check(struct ofd_thread_info *info, LASSERT(ofd_object_exists(fo)); - if (info->fti_exp) + if (info->fti_exp == NULL) RETURN(0); curr_version = dt_version_get(info->fti_env, ofd_object_child(fo)); -- 1.8.3.1