Message ID | 20200820091542.011298432@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=nT5k=B6=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B53A1C433DF for <stable@archiver.kernel.org>; Thu, 20 Aug 2020 12:19:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B53720738 for <stable@archiver.kernel.org>; Thu, 20 Aug 2020 12:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597925941; bh=diE3N2CBro8OHsuIjnaYGxC4OcsqUFKElYd2GeKgqc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=hXH6G3eJ3MqMwziaT2L3CpYPdpWdE1MXm0sKaRG5cS9Co7ytOEAQ6+tdsXlOb6CMR YEhoThZYVNw9ujDhmDFaId7Rqe9cX4EGbaFjCIG0C2O1Z/yw/XFxqD5QwpHXSYiDM5 JlP//miqJLK5dSEMkDr92seYOoXbwtPV1cTgM09U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730185AbgHTMTA (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 20 Aug 2020 08:19:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:39444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730246AbgHTJ4E (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 20 Aug 2020 05:56:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 652BE20855; Thu, 20 Aug 2020 09:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597917363; bh=diE3N2CBro8OHsuIjnaYGxC4OcsqUFKElYd2GeKgqc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uOsuaHlGYLcZCzcDlKl9vz8J3Ig7UCJ8Pr42wbct6jZqkJU7T+GyuNOG2QfkKdq4Z xu+pKqRmJkd1TR19gxRRssThthU1LMgKGE9pnhQcojBDpu8kobwq1Ps0oWoGAEp4j3 WNaReu1MfULWcOmk72kV3lEt4lV/dA4FNbesIOY4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Dinghao Liu <dinghao.liu@zju.edu.cn>, Takashi Iwai <tiwai@suse.de>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 84/92] ALSA: echoaudio: Fix potential Oops in snd_echo_resume() Date: Thu, 20 Aug 2020 11:22:09 +0200 Message-Id: <20200820091542.011298432@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091537.490965042@linuxfoundation.org> References: <20200820091537.490965042@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 3ef2b27ebbe8c..f32c55ffffc79 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c @@ -2216,7 +2216,6 @@ static int snd_echo_resume(struct device *dev) if (err < 0) { kfree(commpage_bak); dev_err(dev, "resume init_hw err=%d\n", err); - snd_echo_free(chip); return err; } @@ -2243,7 +2242,6 @@ static int snd_echo_resume(struct device *dev) if (request_irq(pci->irq, snd_echo_interrupt, IRQF_SHARED, KBUILD_MODNAME, chip)) { dev_err(chip->card->dev, "cannot grab irq\n"); - snd_echo_free(chip); return -EBUSY; } chip->irq = pci->irq;