Fix incorrect errors handling. Detected by smatch.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-08-27 22:14:47 +00:00
parent 3861a12da5
commit 89296abc5e

View File

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