Re: scsi: qla2xxx: use dma_mapping_error to check map errors

From: Martin K. Petersen
Date: Thu Aug 10 2017 - 20:06:23 EST



Pan,

> The return value of dma_map_single() should be checked by
> dma_mapping_error(). However, in function qla26xx_dport_diagnostics(),
> its return value is checked against NULL, which could result in
> failures.

Applied to 4.14/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering