[SCSI] 3w-xxxx: scsi_dma_unmap fix
authoradam radford <aradford@gmail.com>
Mon, 11 May 2009 21:55:55 +0000 (14:55 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 15 May 2009 16:24:59 +0000 (12:24 -0400)
commit7b14f58ad65f9d74e4273fb45360cfea824495aa
tree06d260917df5aa71bd255cec303f9147e45e9f00
parent8454e9888cb0316dd296fd5d47c612248ed5e1d1
[SCSI] 3w-xxxx: scsi_dma_unmap fix

This patch fixes the following regression that occurred during the
scsi_dma_map()/unmap()
changes when compiling with CONFIG_DMA_API_DEBUG=y :

WARNING: at lib/dma-debug.c:496 check_unmap+0x142/0x542()
Hardware name:
3w-xxxx 0000:02:02.0: DMA-API: device driver tries to free DMA memory
it has not allocated [device address=0x0000000000000000] [size=36
bytes]

Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.h