Whamcloud - gitweb
LU-8802 obd: str2dev is missing obd_device_unlock()
[fs/lustre-release.git] / lustre / obdclass / genops.c
index ff1d7b4..611a8ec 100644 (file)
@@ -667,6 +667,7 @@ struct obd_device *class_str2obd(const char *str)
                                class_incref(obd, "find", current);
                                break;
                        }
+                       obd_device_unlock();
                        RETURN(NULL);
                }
        }