lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 31 May 2021 14:09:59 +0530
From:   Vinod Koul <vkoul@...nel.org>
To:     Yang Li <yang.lee@...ux.alibaba.com>
Cc:     kishon@...com, linux-phy@...ts.infradead.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] phy: ti: Fix an error code in wiz_probe()

On 25-05-21, 18:50, Yang Li wrote:
> When the code execute this if statement, the value of ret is 0. 
> However, we can see from the dev_err() log that the value of 
> ret should be -EINVAL.
> 
> Clean up smatch warning:
> 
> drivers/phy/ti/phy-j721e-wiz.c:1216 wiz_probe() warn: missing error code
> 'ret'

Single line is fine for this

> 
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Fixes: 'commit c9f9eba06629 ("phy: ti: j721e-wiz: Manage
> typec-gpio-dir")'

Please dont split to two lines for fixes tag

> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>

I have fixed while applying so Applied, thanks

> ---
>  drivers/phy/ti/phy-j721e-wiz.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c
> index 9eb6d37..126f5b8 100644
> --- a/drivers/phy/ti/phy-j721e-wiz.c
> +++ b/drivers/phy/ti/phy-j721e-wiz.c
> @@ -1212,6 +1212,7 @@ static int wiz_probe(struct platform_device *pdev)
>  
>  		if (wiz->typec_dir_delay < WIZ_TYPEC_DIR_DEBOUNCE_MIN ||
>  		    wiz->typec_dir_delay > WIZ_TYPEC_DIR_DEBOUNCE_MAX) {
> +			ret = -EINVAL;
>  			dev_err(dev, "Invalid typec-dir-debounce property\n");
>  			goto err_addr_to_resource;
>  		}
> -- 
> 1.8.3.1

-- 
~Vinod

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ