mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
[SCSI] iscsi update: fix mgmt pool err path release
>From ogerlitz@voltaire.com: mgmtpool shoild be frees in immdata_alloc_fail label. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Alex Aizman <itn780@yahoo.com> Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
351f739e68
commit
b36ae07cb7
@ -3316,8 +3316,8 @@ iscsi_session_create(struct scsi_transport_template *scsit,
|
||||
r2tpool_alloc_fail:
|
||||
for (cmd_i = 0; cmd_i < session->mgmtpool_max; cmd_i++)
|
||||
kfree(session->mgmt_cmds[cmd_i]->data);
|
||||
iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds);
|
||||
immdata_alloc_fail:
|
||||
iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds);
|
||||
mgmtpool_alloc_fail:
|
||||
iscsi_pool_free(&session->cmdpool, (void**)session->cmds);
|
||||
cmdpool_alloc_fail:
|
||||
|
Loading…
x
Reference in New Issue
Block a user