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] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 21 Jul 2020 06:16:47 +0530
From:   "Alim Akhtar" <alim.akhtar@...sung.com>
To:     "'Gustavo A. R. Silva'" <gustavoars@...nel.org>,
        "'Kishon Vijay Abraham I'" <kishon@...com>,
        "'Vinod Koul'" <vkoul@...nel.org>,
        "'Seungwon Jeon'" <essuuj@...il.com>,
        "'Kiwoong Kim'" <kwmad.kim@...sung.com>
Cc:     <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v2][next] phy: samsung-ufs: Fix IS_ERR argument

Hi Gustavo,

> -----Original Message-----
> From: Gustavo A. R. Silva <gustavoars@...nel.org>
> Sent: 20 July 2020 18:57
> To: Kishon Vijay Abraham I <kishon@...com>; Vinod Koul <vkoul@...nel.org>;
> Seungwon Jeon <essuuj@...il.com>; Alim Akhtar
> <alim.akhtar@...sung.com>; Kiwoong Kim <kwmad.kim@...sung.com>
> Cc: linux-kernel@...r.kernel.org; Gustavo A. R. Silva
<gustavoars@...nel.org>
> Subject: [PATCH v2][next] phy: samsung-ufs: Fix IS_ERR argument
> 
> Fix IS_ERR argument in samsung_ufs_phy_symbol_clk_init(). The proper
> argument to be passed to IS_ERR() is phy->rx1_symbol_clk.
> 
> This bug was detected with the help of Coccinelle.
> 
> Fixes: bca21e930451 ("phy: samsung-ufs: add UFS PHY driver for samsung
SoC")
> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
> ---
Reviewed-by: Alim Akhtar <alim.akhtar@...sung.com>

> Changes in v2:
>  - Update subject line and changelog text.
> 
>  drivers/phy/samsung/phy-samsung-ufs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/phy/samsung/phy-samsung-ufs.c
> b/drivers/phy/samsung/phy-samsung-ufs.c
> index 43ef77d1d96c..9832599a0283 100644
> --- a/drivers/phy/samsung/phy-samsung-ufs.c
> +++ b/drivers/phy/samsung/phy-samsung-ufs.c
> @@ -147,7 +147,7 @@ static int samsung_ufs_phy_symbol_clk_init(struct
> samsung_ufs_phy *phy)
>  	}
> 
>  	phy->rx1_symbol_clk = devm_clk_get(phy->dev, "rx1_symbol_clk");
> -	if (IS_ERR(phy->rx0_symbol_clk)) {
> +	if (IS_ERR(phy->rx1_symbol_clk)) {
>  		dev_err(phy->dev, "failed to get rx1_symbol_clk clock\n");
>  		return PTR_ERR(phy->rx1_symbol_clk);
>  	}
> --
> 2.27.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ