Re: [PATCH v2 1/1] ufs: mcq: qcom: Fix passing zero to PTR_ERR

From: Martin K. Petersen
Date: Mon Mar 06 2023 - 21:58:07 EST


On Wed, 01 Mar 2023 17:41:06 -0800, Asutosh Das wrote:

> Fix an error case in ufs_qcom_mcq_config_resource(), where the
> return value is set to 0 before passing it to PTR_ERR.
>
> This led to Smatch warning:
> drivers/ufs/host/ufs-qcom.c:1455 ufs_qcom_mcq_config_resource() warn:
> passing zero to 'PTR_ERR'
>
> [...]

Applied to 6.3/scsi-fixes, thanks!

[1/1] ufs: mcq: qcom: Fix passing zero to PTR_ERR
https://git.kernel.org/mkp/scsi/c/c8be073bd2bc

--
Martin K. Petersen Oracle Linux Engineering