]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: wd719x: Return proper error code when dma_set_mask() fails
authorZheyu Ma <zheyuma97@gmail.com>
Mon, 28 Feb 2022 14:54:15 +0000 (14:54 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Mar 2022 04:56:28 +0000 (23:56 -0500)
commitf77cc818984321692122350ac3f6536a72691b38
treefbc86a9cabff13aa260a00a4c95c2dc3b9dde114
parent4a69b78849f5e7544d01710d581d66a133fb46bc
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>
drivers/scsi/wd719x.c