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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 21 Jun 2016 07:49:26 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	"Helen Koike" <helen.koike@...labora.co.uk>
Cc:	<alsa-devel@...a-project.org>, <trivial@...nel.org>,
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ALSA: hda - Remove compilation warning

On Mon, 20 Jun 2016 21:42:31 +0200,
Helen Koike wrote:
> 
> Remove the warning:
> warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]

It's a false positive, a compiler problem.


Takashi

> 
> Signed-off-by: Helen Koike <helen.koike@...labora.co.uk>
> ---
>  sound/hda/hdac_regmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/hda/hdac_regmap.c b/sound/hda/hdac_regmap.c
> index 87041dd..7be6ca1 100644
> --- a/sound/hda/hdac_regmap.c
> +++ b/sound/hda/hdac_regmap.c
> @@ -279,7 +279,7 @@ static int hda_reg_write(void *context, unsigned int reg, unsigned int val)
>  {
>  	struct hdac_device *codec = context;
>  	unsigned int verb;
> -	int i, bytes, err;
> +	int i, bytes, err = 0;
>  	int pm_lock = 0;
>  
>  	if (codec->caps_overwriting)
> -- 
> 1.9.1
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ