3w-xxxx: scsi_dma_unmap fix
commit05a0478d956820a6f168ed9f65c00da688cc5751
authoradam radford <aradford@gmail.com>
Mon, 11 May 2009 21:55:55 +0000 (11 14:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:40:15 +0000 (15 09:40 -0700)
treef3249a298d39c04b2109240cc77d5783909c879b
parent8905d71b7486fbe10423a08353bf484afdc09f9e
3w-xxxx: scsi_dma_unmap fix

commit 7b14f58ad65f9d74e4273fb45360cfea824495aa upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.h