mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
isert: add missing fd put on error flow
Signed-off-by: Israel Rukshin <israelr@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6954 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user