From: Takashi Iwai Subject: Re: [PATCH - my module 1/1] Fix a memory access violation resulting from improper error propogation. Date: Fri, 01 Feb 2013 08:16:48 +0100 Message-ID: References: <1359658533-23170-1-git-send-email-allan@allanwirth.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id AAA5126077D for ; Fri, 1 Feb 2013 08:16:48 +0100 (CET) In-Reply-To: <1359658533-23170-1-git-send-email-allan@allanwirth.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: allan@allanwirth.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 31 Jan 2013 13:55:33 -0500, allan@allanwirth.com wrote: > > From: Allan Wirth > > Fixes an issue where a variable is used undeclared, which can cause seg > faults on some systems if the configuration file is not formatted > properly. > > Signed-off-by: Allan Wirth Thanks, applied now. Takashi > > diff --git a/src/conf.c b/src/conf.c > index ecaa339..4ba5863 100644 > --- a/src/conf.c > +++ b/src/conf.c > @@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t > if (err < 0) > goto _err; > } > - } else if (config_file_open(root, fi[idx].name) < 0) > + } else if ((err = config_file_open(root, fi[idx].name)) < 0) > goto _err; > } > *dst = NULL; > -- > 1.7.10.4 >