From 9273026e5f8c735b9bc86a0f34a7ac45dc674d57 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 6 Jan 2013 14:10:49 +0000 Subject: [PATCH] scst_local: Fix error handling (merge r4493 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4706 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 f1e99c995..867d21b14 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1645,7 +1645,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; }