mptsas: fix checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Apr 2016 23:12:29 +0000 (02:12 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Apr 2016 23:01:34 +0000 (19:01 -0400)
commit1354379b13f190ae5da21c26836a16ba56566ab3
treead9d15c40db01702375fc7e8867327ec843368e2
parent71d397581d52c24c9903d9729aae09828f956801
mptsas: fix checks for dma mapping errors

mptsas_smp_handler() 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>
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptsas.c