mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user