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
This commit is contained in:
Bart Van Assche
2013-01-06 14:10:49 +00:00
parent 2eebac5f56
commit 9273026e5f
-1
View File
@@ -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;
}