[SCSI] buslogic: Added check for DMA mapping errors
authorKhalid Aziz <khalid.aziz@oracle.com>
Fri, 13 Sep 2013 19:44:06 +0000 (13:44 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:57:57 +0000 (09:57 +0100)
commiteeceec904031f859d3f348ab38fe4329c91f7550
tree45ea2e141b3b5074bb0e25adb57b4fd9038805b6
parent5ae303443094ab49fca41cf331d5af189995bead
[SCSI] buslogic: Added check for DMA mapping errors

Added check for DMA mapping errors for request sense data
buffer. Checking for mapping error can avoid potential wild
writes. This patch was prompted by the warning from
dma_unmap when kernel is compiled with CONFIG_DMA_API_DEBUG.

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/BusLogic.c