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; }