From: Dmitry Eremin Date: Fri, 5 Sep 2014 14:36:31 +0000 (+0400) Subject: LU-5592 ofd: fix incorrect check for NULL X-Git-Tag: 2.6.53~64 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F11773%2F2;p=fs%2Flustre-release.git 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 --- 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));