Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-837 release semaphore for error case in gss_do_ctx_init_rpc
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
gss
/
gss_cli_upcall.c
diff --git
a/lustre/ptlrpc/gss/gss_cli_upcall.c
b/lustre/ptlrpc/gss/gss_cli_upcall.c
index
eb9536b
..
80d5591
100644
(file)
--- a/
lustre/ptlrpc/gss/gss_cli_upcall.c
+++ b/
lustre/ptlrpc/gss/gss_cli_upcall.c
@@
-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);