]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit720f92875bda57ea7462274c36af75d5eb8a5e87
tree45ea2e141b3b5074bb0e25adb57b4fd9038805b6
parent696965f60abf3bacda51c23f9e9ccad40f8a393b
[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