]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitace7a58d16dab63c3f52b25f31d517e8f1b8057b
treead9d15c40db01702375fc7e8867327ec843368e2
parentc29aec3444ed6f4bd9f03f780403a9a753f5f6d1
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