commit | 0b2ce198fa3a6a0c885e888010b7278778df2dab | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Tue Aug 08 21:55:30 2017 +0800 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Aug 10 19:55:35 2017 -0400 |
tree | 216268a82543f9340e07ff9e6be09d6770d1ca23 | |
parent | cf99dc30bcc56c33243b5bbfef9d8ea943dd2e1c [diff] |
scsi: qla2xxx: use dma_mapping_error to check map errors 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. Signed-off-by: Pan Bian <bianpan2016@163.com> Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>