Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9043576pxu; Mon, 28 Dec 2020 05:15:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlnt5wuBEG3XRTBh0cKsQYy/pbaL9qHleW42xVWqZF44vNnyT6kuQLwDb6FjH8XUj5rV6n X-Received: by 2002:a17:906:cec7:: with SMTP id si7mr40818117ejb.123.1609161321229; Mon, 28 Dec 2020 05:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161321; cv=none; d=google.com; s=arc-20160816; b=GN7VldYZbdJ8HzuHLKTM/xiyEIaUxKFfT5j0OU6Y6eAAmV3RCQ4senhoH0JqPKJ4vi Nip0R9lBlV3vkFJ7BhzqENyo1LSLbrelx5Ytvaf6J+UUhZg9IkzjGCWsqEkI8I4nu33T zjW7Mw+jH9OpjhfOZ4z6B3VecjqgLaa/2mhFYNSMvou4yjRdKo+IqCSrr8Nx1s4SnMnv fU6qqaxzOUbbHg4BEYyVYhMNIZh2hSlYvvJWW/usGZaszVlgnjQPWQ7vJ441S1PR+ckx ix29ZI6AxoLP801H2UnSdeHSJ5yfK9ks/zjfrHMLl1/cFyKhhfQV/cwXZZaiCj3Nj9yV N6mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=grg6969d2N+IlyC9wEQtUMIXJmQyTcIujnDIsuG0wnk=; b=U77T5UqelOnw9FW45wKFAYHykUwVVkdWXieybAC4CLFjkHKUTMR6xZ/8hz0rG+5F4N p0eM9YoNDdZZOyUmjyfGRtOpCfuSKBksV4NY89eP1g+i7wwxLBYAtXkTgbcoRLM1u1AY +YQoD4wiCkEnZU2z6enJ0B6ueGwISVNKPzsoj4O7Kq24g0FuaMkhXf6ZoVsAzjI0wOx6 T0FsZBoxN/At6MsmgrJuuFd2cnhi3BP3K+CAvsyPZ3z20HNzG97Qo14t/EcVFXfXsw34 Cegrtz4xpxwPGXVV0O9+17ET6HnZxRhFhPOIjZxCksxCflefbHtkg7Ddbw4L9dutw8Sg 9XqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RtF6N6Un; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp33si17464832ejc.250.2020.12.28.05.14.57; Mon, 28 Dec 2020 05:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RtF6N6Un; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731964AbgL1NMJ (ORCPT + 99 others); Mon, 28 Dec 2020 08:12:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:39272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731815AbgL1NLk (ORCPT ); Mon, 28 Dec 2020 08:11:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C6E1207F7; Mon, 28 Dec 2020 13:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161084; bh=VqL2OATNs0qR6LC6351gPx+pmlFZtKKbIT+PUkmUzGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RtF6N6UnTBY2E1GK0fRNeonZ2b/rVkwtjRowj0het5xIpFmxKomVLfkjJzIYxZ2N/ pcjvZuK9bxlogddp+iSPp4RQWc5kpHlo/iXPrqcC2NcaNF3pL+SlgDsgYJjP8uLOXS 2mWIfcgxBix/GUCKaec7boI391NEVDZI1HFcZ54o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Qinglang Miao , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 095/242] media: solo6x10: fix missing snd_card_free in error handling case Date: Mon, 28 Dec 2020 13:48:20 +0100 Message-Id: <20201228124909.364407952@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qinglang Miao [ Upstream commit dcdff74fa6bc00c32079d0bebd620764c26f2d89 ] Fix to goto snd_error in error handling case when fails to do snd_ctl_add, as done elsewhere in this function. Fixes: 28cae868cd24 ("[media] solo6x10: move out of staging into drivers/media/pci.") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/pci/solo6x10/solo6x10-g723.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-g723.c b/drivers/media/pci/solo6x10/solo6x10-g723.c index 81be1b8df7584..0cbb3ee96e1e8 100644 --- a/drivers/media/pci/solo6x10/solo6x10-g723.c +++ b/drivers/media/pci/solo6x10/solo6x10-g723.c @@ -401,7 +401,7 @@ int solo_g723_init(struct solo_dev *solo_dev) ret = snd_ctl_add(card, snd_ctl_new1(&kctl, solo_dev)); if (ret < 0) - return ret; + goto snd_error; ret = solo_snd_pcm_init(solo_dev); if (ret < 0) -- 2.27.0