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: <s5hk4albni7.wl%tiwai@suse.de>
Date:	Wed, 10 Aug 2011 11:54:08 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	Julia Lawall <julia@...u.dk>
Cc:	Jaroslav Kysela <perex@...ex.cz>, kernel-janitors@...r.kernel.org,
	Andreas Mohr <andi@...as.de>,
	Lucas De Marchi <lucas.demarchi@...fusion.mobi>,
	alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sound/pci/azt3328.c: adjust error handling code to include debugging code

At Wed, 10 Aug 2011 11:49:04 +0200,
Julia Lawall wrote:
> 
> From: Julia Lawall <julia@...u.dk>
> 
> snd_azf3328_dbgcallenter is called at the very beginning of the function,
> so it could be useful to call snd_azf3328_dbgcallleave at all exit points.
> 
> Signed-off-by: Julia Lawall <julia@...u.dk>

Applied now to sound git tree.  Thanks.


Takashi


> ---
>  sound/pci/azt3328.c |   11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
> index e4d76a2..579fc0d 100644
> --- a/sound/pci/azt3328.c
> +++ b/sound/pci/azt3328.c
> @@ -2625,16 +2625,19 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
>  	int err;
>  
>  	snd_azf3328_dbgcallenter();
> -	if (dev >= SNDRV_CARDS)
> -		return -ENODEV;
> +	if (dev >= SNDRV_CARDS) {
> +		err = -ENODEV;
> +		goto out;
> +	}
>  	if (!enable[dev]) {
>  		dev++;
> -		return -ENOENT;
> +		err = -ENOENT;
> +		goto out;
>  	}
>  
>  	err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
>  	if (err < 0)
> -		return err;
> +		goto out;
>  
>  	strcpy(card->driver, "AZF3328");
>  	strcpy(card->shortname, "Aztech AZF3328 (PCI168)");
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ