summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_main.h
diff options
context:
space:
mode:
authorJohn Soni Jose <sony.john-n@emulex.com>2012-10-20 01:12:00 +0200
committerJames Bottomley <JBottomley@Parallels.com>2012-11-27 05:59:35 +0100
commitd629c47171ccc281bbb02507f9521a6125782e9b (patch)
treea44162a31596ad10452f1a47d43d7e16333ce5ae /drivers/scsi/be2iscsi/be_main.h
parent[SCSI] be2iscsi: Display Completion Event string instead of Opcode (diff)
downloadlinux-d629c47171ccc281bbb02507f9521a6125782e9b.tar.xz
linux-d629c47171ccc281bbb02507f9521a6125782e9b.zip
[SCSI] be2iscsi: Fix memory leak in control path of driver
In contorl path of the driver the task was mapped using pci_map_single which was not unmapped when the completion for the task had come. Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/be2iscsi/be_main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
index b8912263ef4e..f4e8d19c3828 100644
--- a/drivers/scsi/be2iscsi/be_main.h
+++ b/drivers/scsi/be2iscsi/be_main.h
@@ -410,6 +410,8 @@ struct beiscsi_io_task {
struct be_cmd_bhs *cmd_bhs;
struct be_bus_address bhs_pa;
unsigned short bhs_len;
+ dma_addr_t mtask_addr;
+ uint32_t mtask_data_count;
};
struct be_nonio_bhs {