diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-02-01 22:07:09 -0500 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-04 17:19:53 -0500 |
commit | b36ae07cb7757bd3eabd13c79844083dccac2f77 (patch) | |
tree | a30d2a7d105591f24046d987a0db46108e41f256 /drivers/scsi | |
parent | 351f739e68e97a0316136a5bda145b952d99a989 (diff) |
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 579eecfd186e..ff79e68b347c 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -3316,8 +3316,8 @@ iscsi_session_create(struct scsi_transport_template *scsit, | |||
3316 | r2tpool_alloc_fail: | 3316 | r2tpool_alloc_fail: |
3317 | for (cmd_i = 0; cmd_i < session->mgmtpool_max; cmd_i++) | 3317 | for (cmd_i = 0; cmd_i < session->mgmtpool_max; cmd_i++) |
3318 | kfree(session->mgmt_cmds[cmd_i]->data); | 3318 | kfree(session->mgmt_cmds[cmd_i]->data); |
3319 | iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds); | ||
3320 | immdata_alloc_fail: | 3319 | immdata_alloc_fail: |
3320 | iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds); | ||
3321 | mgmtpool_alloc_fail: | 3321 | mgmtpool_alloc_fail: |
3322 | iscsi_pool_free(&session->cmdpool, (void**)session->cmds); | 3322 | iscsi_pool_free(&session->cmdpool, (void**)session->cmds); |
3323 | cmdpool_alloc_fail: | 3323 | cmdpool_alloc_fail: |