Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp570208pxb; Wed, 11 Nov 2020 10:31:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEd9FOLEGP7r5pVX+WPzREqdgrCQfcBwDkPf3LzTCgTwW5QOfehwb1yWegeYKV8PgblWPV X-Received: by 2002:a50:cd0a:: with SMTP id z10mr835600edi.223.1605119488879; Wed, 11 Nov 2020 10:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119488; cv=none; d=google.com; s=arc-20160816; b=lGfScCPUEN2pViPpA5BO3l3z7n3HD1Jyju3+v/HlaoeW+eXHhkhpxUR+3SCAFIfaNS Dfk0479O9gG/zztQFfTVv0CfDfPvvf93Iyv32YZy5dcEKpsUle5f+9oFq9f4KcgLF2nh HjpI3X1Vo6aqU39XWjhuP7Ki/MQis7pcAgoNMptyVeI7/fgyGx/x2ANVayOttwQcj+sR 11b3BLGEf1xdEnSNMBwuPg+13fqEF4Ac+9IlVunJTgm29zdABAfgm+hv3oDLDkS+84BW CPYnoNRtJp/IjwinqhfwrrICzvUD58q70RcZcEmOuutqohQvZyi+xK/R1X8uNBRM7qJI ApWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DaCofINqUi+MqnthZBnrX7HrAIOcpPEzVcPN4xTrnQo=; b=jTfabZZXqS3CpkHYA+5ZLATcqXAvimJqSFNH96yDiJ1AoHSY1CYFJOq0Ko6fwh73xT bBjXln2tvWnOjDtH5W2Q1JYkipCDI0GiEe2W2QdO+TyhP+3FL+0QU4KellrZrA6mpZvf VisNsEv/VK9qO0jambMyghq8qrANeO5Q+IrjQZn8f3+n4yb/VfbLYdfVw1XlVlKVkAFH ZDllhKVTEN+0W3wczoHYWDYxt67nWGAVca6y8qIpZPLO0KIFrwPk+tWG8yme3/pFtTW9 o+a0zCNhuQa+TiQ0HCe7mX/pVQq6zWboMHaJvMs6mMZyaq49IqwdfIU0Ti8EWIoLWqBG NoYA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=iodev.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si2068187ejt.283.2020.11.11.10.31.05; Wed, 11 Nov 2020 10:31:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=iodev.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727232AbgKKS3C (ORCPT + 99 others); Wed, 11 Nov 2020 13:29:02 -0500 Received: from iodev.co.uk ([46.30.189.100]:50300 "EHLO iodev.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbgKKS3B (ORCPT ); Wed, 11 Nov 2020 13:29:01 -0500 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Nov 2020 13:29:00 EST Received: from abuya (118.130.77.188.dynamic.jazztel.es [188.77.130.118]) by iodev.co.uk (Postfix) with ESMTPSA id 4DBD013403; Wed, 11 Nov 2020 19:19:09 +0100 (CET) Date: Wed, 11 Nov 2020 19:21:26 +0100 From: Ismael Luceno To: Qinglang Miao Cc: Bluecherry Maintainers , Anton Sviridenko , Andrey Utkin , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: solo6x10: fix missing snd_card_free in error handling case Message-ID: <20201111182126.GE22827@abuya> References: <20201111032201.17879-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201111032201.17879-1-miaoqinglang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/Nov/2020 11:22, Qinglang Miao wrote: > 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 > --- > 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 906ce86437ae..d137b94869d8 100644 > --- a/drivers/media/pci/solo6x10/solo6x10-g723.c > +++ b/drivers/media/pci/solo6x10/solo6x10-g723.c > @@ -385,7 +385,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.23.0 > Signed-off-by: Ismael Luceno