diff options
author | John Soni Jose <sony.john-n@emulex.com> | 2012-10-20 04:42:00 +0530 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-27 08:59:35 +0400 |
commit | d629c47171ccc281bbb02507f9521a6125782e9b (patch) | |
tree | a44162a31596ad10452f1a47d43d7e16333ce5ae /drivers/scsi/be2iscsi/be_main.h | |
parent | 6763daae8fcf4d7581238385aa326f3dbe8f16c5 (diff) | |
download | op-kernel-dev-d629c47171ccc281bbb02507f9521a6125782e9b.zip op-kernel-dev-d629c47171ccc281bbb02507f9521a6125782e9b.tar.gz |
[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 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index b891226..f4e8d19 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 { |