summaryrefslogtreecommitdiff
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2022-02-28 17:54:15 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-03-02 07:56:28 +0300
commit98cdcd6c6b4a3abacc65dd7ec66a230a5dffc3f8 (patch)
treefbc86a9cabff13aa260a00a4c95c2dc3b9dde114 /drivers/scsi/lpfc/lpfc_scsi.c
parent69af1c9577aae2149f79be6f485609250fdfb0ad (diff)
downloadlinux-98cdcd6c6b4a3abacc65dd7ec66a230a5dffc3f8.tar.xz
scsi: wd719x: Return proper error code when dma_set_mask() fails
During the process of driver probing, the probe function should return < 0 for failure, otherwise the kernel will treat value >= 0 as success. Set 'err' to the error value returned by dma_set_mask() in case of failure. Link: https://lore.kernel.org/r/1646060055-11361-1-git-send-email-zheyuma97@gmail.com Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
0 files changed, 0 insertions, 0 deletions