Whamcloud - gitweb
LU-837 release semaphore for error case in gss_do_ctx_init_rpc
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_cli_upcall.c
index eb9536b..80d5591 100644 (file)
@@ -299,6 +299,7 @@ int gss_do_ctx_init_rpc(__user char *buffer, unsigned long count)
         cfs_down_read(&obd->u.cli.cl_sem);
         if (obd->u.cli.cl_import == NULL) {
                 CERROR("obd %s: import has gone\n", obd->obd_name);
+                cfs_up_read(&obd->u.cli.cl_sem);
                 RETURN(-EINVAL);
         }
         imp = class_import_get(obd->u.cli.cl_import);