Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-5592

incorrect check for NULL in ofd_version_get_check()

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.7.0
    • None
    • 3
    • 15594

    Description

      int ofd_version_get_check(struct ofd_thread_info *info,
      			  struct ofd_object *fo)
      {
      	dt_obj_version_t curr_version;
      
      	LASSERT(ofd_object_exists(fo));
      
      	if (info->fti_exp)
      		RETURN(0);
      ...
      		spin_lock(&info->fti_exp->exp_lock);
      		info->fti_exp->exp_vbr_failed = 1;
      		spin_unlock(&info->fti_exp->exp_lock);
      		RETURN (-EOVERFLOW);
      	}
      	info->fti_pre_version = curr_version;
      	RETURN(0);
      }
      

      Attachments

        Activity

          People

            dmiter Dmitry Eremin (Inactive)
            dmiter Dmitry Eremin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: