[SCSI] ipr: Fix adapter microcode update DMA mapping leak
authorbrking@us.ibm.com <brking@us.ibm.com>
Tue, 1 Nov 2005 23:01:27 +0000 (17:01 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 6 Nov 2005 19:04:18 +0000 (13:04 -0600)
commit12baa4202d74d799f4f8a4bd0455b485e4f8e876
tree71601a7098f67c43c2642f32948a4ff01c492e6b
parent0bc42e35c74c0baab414cf623d6fe1e94cee4ca3
[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>
drivers/scsi/ipr.c
drivers/scsi/ipr.h