3w-xxxx: scsi_dma_unmap fix
authoradam radford <aradford@gmail.com>
Mon, 11 May 2009 21:55:55 +0000 (14:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Jun 2009 03:01:19 +0000 (20:01 -0700)
commit73eb6ac73febd6dea38603b39f78d88ab3cda27a
treeef124b2d6612feb77db18bffba6357d1a4555d79
parentdd7bee967d1c774f3ae32f9e8f6d3dfd2572e2c9
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