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]
Message-ID: <AM6PR04MB3976BDE554983C8AF164A680EC639@AM6PR04MB3976.eurprd04.prod.outlook.com>
Date:   Thu, 20 Apr 2023 17:02:38 +0000
From:   "Madalin Bucur (OSS)" <madalin.bucur@....nxp.com>
To:     Dan Carpenter <dan.carpenter@...aro.org>,
        Sean Anderson <sean.anderson@...o.com>
CC:     "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>,
        Camelia Alexandra Groza <camelia.groza@....com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: RE: [PATCH net] net: dpaa: Fix uninitialized variable in dpaa_stop()

> -----Original Message-----
> From: Dan Carpenter <dan.carpenter@...aro.org>
> Sent: 20 April 2023 15:36
> To: Sean Anderson <sean.anderson@...o.com>
> Cc: Madalin Bucur <madalin.bucur@....com>; David S. Miller
> <davem@...emloft.net>; Eric Dumazet <edumazet@...gle.com>; Jakub Kicinski
> <kuba@...nel.org>; Paolo Abeni <pabeni@...hat.com>; Camelia Alexandra
> Groza <camelia.groza@....com>; netdev@...r.kernel.org; kernel-
> janitors@...r.kernel.org
> Subject: [PATCH net] net: dpaa: Fix uninitialized variable in dpaa_stop()
> 
> The return value is not initialized on the success path.
> 
> Fixes: 901bdff2f529 ("net: fman: Change return type of disable to void")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
> ---
> Applies to net.
> 
>  drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
> b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
> index 9318a2554056..f96196617121 100644
> --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
> +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
> @@ -299,7 +299,8 @@ static int dpaa_stop(struct net_device *net_dev)
>  {
>  	struct mac_device *mac_dev;
>  	struct dpaa_priv *priv;
> -	int i, err, error;
> +	int i, error;
> +	int err = 0;
> 
>  	priv = netdev_priv(net_dev);
>  	mac_dev = priv->mac_dev;
> --
> 2.39.2

Acked-by: Madalin Bucur <madalin.bucur@....nxp.com>

Thank you!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ