Whamcloud - gitweb
minor fix in lmv_get_mea_and_update_object().
authorniu <niu>
Wed, 6 Jul 2005 07:53:00 +0000 (07:53 +0000)
committerniu <niu>
Wed, 6 Jul 2005 07:53:00 +0000 (07:53 +0000)
lustre/lmv/lmv_obd.c

index bd74795..cd8e337 100644 (file)
@@ -887,8 +887,9 @@ int lmv_get_mea_and_update_object(struct obd_export *exp,
         obj = lmv_create_obj(exp, id, md.mea);
         if (IS_ERR(obj))
                 rc = PTR_ERR(obj);
-        
-        lmv_put_obj(obj);
+        else
+                lmv_put_obj(obj);
+
         obd_free_memmd(exp, (struct lov_stripe_md **)&md.mea);
 
         EXIT;