[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)
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>

No differences found