Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4128540rdb; Wed, 30 Aug 2023 17:15:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdHgKxeKu7f548N7YK8tjUk2pS8O4CoRmAS9xzWRiFxcyFwlEqAPX0xpqAVNYdRQ/UcOII X-Received: by 2002:aa7:d5ce:0:b0:523:1fa2:4f40 with SMTP id d14-20020aa7d5ce000000b005231fa24f40mr3098685eds.19.1693440923952; Wed, 30 Aug 2023 17:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693440923; cv=none; d=google.com; s=arc-20160816; b=RGYyrITtgmu3Ltb0xt76+X782JX6OakGS5sjRNI4B4du6rann8Sgte/PccUkDymLJm IzGN/GBWKD3py2cx2nEYvGWoODNevwb1CnThLrZG/v1jyk1YXJD02Qk3HHIJ5L9/Z4h5 4b8mGO7uwhuK+JtsXS+nGLz3m4g2n5BA4ABNUGdnlODXQrxHz33x/DP51mem/MGNEx4m ikEuT/NFyueg31LAaoBjUAXYZqDipJHdHkAPqbUu7l/62KN8cbRGv2zpREApdsZO9cEy srh5j2s+8l0acMsI19hCTwUOl5kRXu3qtko6Luj+HMcDX68r5928OSeEyW8Q7SqtC/CO vfiw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KYwzpt6W1hEoh5DJge05VrM52vl/hPbVjGNIdi11Bfo=; fh=gSlqDyTAaX4sD5o7lNdgN6GT1mkO6Z4/Ye0T8jAhwnM=; b=TlGJVJ/bk3o8bGwH8mz3lVBZnI5TXwlrD4Uh9NzjmOYfenfWhfp1UR1zeR5bB6QAVw UHRIhP2uJhT3aDiWThs74fcblZHgsRuLM5MbBnqnxr6N8Fh5SzfB3yAjw2+TRwg039gr tJUBeFUKuGrXCr+4sebuHIhrLkIprQ5wLQGTOt03SstvSRe5rJyWJ1YFQGI/hoYQ8cSI JH0wMaDk2IGbaQjikCZCFh8PiLPAmlto808u0RWT4y63nvmvgacQOQP9XN5VSlCtVqLQ +Ef5IshvwLoQl4Ik7gru8+FIi2wrWaAPwPKbGJkKPAl7kS1RoFYHV1uCHQ9DwDzQNKwb kO1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a50ed02000000b005255d8f2d00si231444eds.672.2023.08.30.17.14.54; Wed, 30 Aug 2023 17:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239185AbjH3SkJ (ORCPT + 99 others); Wed, 30 Aug 2023 14:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245574AbjH3PhM (ORCPT ); Wed, 30 Aug 2023 11:37:12 -0400 Received: from mblankhorst.nl (lankhorst.se [IPv6:2a02:2308:0:7ec:e79c:4e97:b6c4:f0ae]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E5031A6 for ; Wed, 30 Aug 2023 08:37:09 -0700 (PDT) From: Maarten Lankhorst To: alsa-devel@alsa-project.org Cc: Maarten Lankhorst , Jaroslav Kysela , Takashi Iwai , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Daniel Baluta , linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org Subject: [PATCH v4 03/11] ALSA: hda/intel: Fix error handling in azx_probe() Date: Wed, 30 Aug 2023 17:36:44 +0200 Message-Id: <20230830153652.217855-4-maarten.lankhorst@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230830153652.217855-1-maarten.lankhorst@linux.intel.com> References: <20230830153652.217855-1-maarten.lankhorst@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing pci_set_drv to NULL call on error. Signed-off-by: Maarten Lankhorst Reviewed-by: Pierre-Louis Bossart Reviewed-by: Peter Ujfalusi Reviewed-by: Kai Vehmanen --- sound/pci/hda/hda_intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 765d95e798617..bf6210506a2da 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2176,6 +2176,7 @@ static int azx_probe(struct pci_dev *pci, return 0; out_free: + pci_set_drvdata(pci, NULL); snd_card_free(card); return err; } -- 2.39.2