]> git.baikalelectronics.ru Git - kernel.git/commit
mtip32xx: fix checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 18 Mar 2016 22:35:54 +0000 (01:35 +0300)
committerJens Axboe <axboe@fb.com>
Sat, 19 Mar 2016 01:10:59 +0000 (18:10 -0700)
commita9392178594928b9594b9111f9a8f265140786ed
tree3c4111bb8f7e0217bf3e29b755f574045ae7571f
parenta55656451228dc0e9164595a57f28d1b53501a84
mtip32xx: fix checks for dma mapping errors

exec_drive_taskfile() checks for dma mapping errors by comparison
returned address with zero, while pci_dma_mapping_error() should be used.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c