From: Takashi Iwai Subject: Re: [PATCH] ALSA: intel8x0: Check pci_iomap() success for DEVICE_ALI Date: Thu, 16 Apr 2015 10:15:52 +0200 Message-ID: References: <1429139807-7059-1-git-send-email-scottwood@freescale.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 6AEE326067E for ; Thu, 16 Apr 2015 10:15:53 +0200 (CEST) In-Reply-To: <1429139807-7059-1-git-send-email-scottwood@freescale.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: Scott Wood Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 15 Apr 2015 18:16:47 -0500, Scott Wood wrote: > > DEVICE_ALI previously would jump to port_inited after calling > pci_iomap(), bypassing the check for bmaddr being NULL. > > Signed-off-by: Scott Wood Applied, thanks. Takashi > --- > sound/pci/intel8x0.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c > index 2c5484e..dfb77a5 100644 > --- a/sound/pci/intel8x0.c > +++ b/sound/pci/intel8x0.c > @@ -3101,13 +3101,13 @@ static int snd_intel8x0_create(struct snd_card *card, > chip->bmaddr = pci_iomap(pci, 3, 0); > else > chip->bmaddr = pci_iomap(pci, 1, 0); > + > + port_inited: > if (!chip->bmaddr) { > dev_err(card->dev, "Controller space ioremap problem\n"); > snd_intel8x0_free(chip); > return -EIO; > } > - > - port_inited: > chip->bdbars_count = bdbars[device_type]; > > /* initialize offsets */ > -- > 2.1.0 >