aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorbrking@us.ibm.com <brking@us.ibm.com>2005-11-01 18:01:27 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-11-06 14:04:18 -0500
commit12baa4202d74d799f4f8a4bd0455b485e4f8e876 (patch)
tree71601a7098f67c43c2642f32948a4ff01c492e6b /drivers/scsi/ipr.h
parent0bc42e35c74c0baab414cf623d6fe1e94cee4ca3 (diff)
[SCSI] ipr: Fix adapter microcode update DMA mapping leak
If the write buffer command that is issued to the ipr adapter to update its microcode fails for some reason, the DMA buffer will never get unmapped. Move the pci_map/unmap out of the IOA reset job so that the buffer is always clearly mapped and unmapped. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 6d9aef001fe7..1a29eb865b0b 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -811,6 +811,7 @@ struct ipr_trace_entry {
811struct ipr_sglist { 811struct ipr_sglist {
812 u32 order; 812 u32 order;
813 u32 num_sg; 813 u32 num_sg;
814 u32 num_dma_sg;
814 u32 buffer_len; 815 u32 buffer_len;
815 struct scatterlist scatterlist[1]; 816 struct scatterlist scatterlist[1];
816}; 817};