From 89296abc5e90fe41131c4d0cc6d2dc29c39c7d0f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Aug 2012 22:14:47 +0000 Subject: [PATCH] Fix incorrect errors handling. Detected by smatch. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4493 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 1 - 1 file changed, 1 deletion(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index e7837cdc6..f52dcd46b 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1618,7 +1618,6 @@ static int __scst_local_add_adapter(struct scst_local_tgt *tgt, initiator_name, (void *)sess, NULL, NULL); if (sess->scst_sess == NULL) { PRINT_ERROR("%s", "scst_register_session failed"); - kfree(sess); res = -EFAULT; goto out_free; }