From b292383396c6cf5fd60a5163a153dc329682a942 Mon Sep 17 00:00:00 2001 From: Israel Rukshin Date: Wed, 17 Aug 2016 07:28:34 +0000 Subject: [PATCH] isert: add missing fd put on error flow Signed-off-by: Israel Rukshin git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6954 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/isert_login.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iscsi-scst/kernel/isert-scst/isert_login.c b/iscsi-scst/kernel/isert-scst/isert_login.c index af45f4595..2956f5236 100644 --- a/iscsi-scst/kernel/isert-scst/isert_login.c +++ b/iscsi-scst/kernel/isert-scst/isert_login.c @@ -217,6 +217,7 @@ int isert_conn_alloc(struct iscsi_session *session, dev = filp->private_data; if (unlikely(dev->state == CS_DISCONNECTED)) { + fput(filp); res = -EBADF; goto out; }