[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:
Родитель
351f739e68
Коммит
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче