Whamcloud - gitweb
LU-5734 lnet: improve clean up code and API
[fs/lustre-release.git] / lustre / mdt / mdt_hsm.c
index e593bff..237663a 100644 (file)
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, 2013, Intel Corporation.
- * Use is subject to license terms.
  * Copyright (c) 2011, 2012 Commissariat a l'energie atomique et aux energies
  *                          alternatives
+ *
+ * Copyright (c) 2012, 2014, Intel Corporation.
+ * Use is subject to license terms.
  */
 /*
  * lustre/mdt/mdt_hsm.c
@@ -332,7 +333,7 @@ int mdt_hsm_state_set(struct tgt_session_info *tsi)
                CDEBUG(D_HSM, "Incompatible flag change on "DFID
                              "flags="LPX64"\n",
                       PFID(&info->mti_body->mbo_fid1), flags);
-               GOTO(out_ucred, rc = -EINVAL);
+               GOTO(out_unlock, rc = -EINVAL);
        }
 
        /* Save the modified flags */