From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2681433E36A; Sat, 30 May 2026 17:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780162712; cv=none; b=MdDaX9ZlfjQ1XAIa57aeicYDDTcLJ80qPq052M9fqdgtaNP6tkfvabwNf2UBGa9dGmzww5/4W6HmLNhShlpfYy00N0z32UkStI/jSP69RZq6wskqhy9QpdqpyfqmkNBzunoEsJUen/9XvvhL/K1Wrn5VA9iTaKRuG1N0Ew4t0C8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780162712; c=relaxed/simple; bh=bTdRIxJztyGulYk1EyBQONL9aLXlZwNQ93WI7kXi98s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f4nhEcHfEv+SklRm625VXQl6Qra7w1ScMO/0zTmqeuiALsqC6wcFGb4NaGILIolUuM5EWqWA2dHvbs7pewIW/NVr6tl1zJySlmxFU+V09+BSoEubINzQzeVugUr0UOwDapqmdOZGD121kaWmIfR9bGA1xBvKL/YxLqN1XQ5eg1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M8xPQIjC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M8xPQIjC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 711B51F00893; Sat, 30 May 2026 17:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780162711; bh=vb1MxzRIvha7Nc5Ims+Uxc0dcAEQZwihkd/Ud8WV5iQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=M8xPQIjCIMO5SPuwqd3MkMTm3RP4LNBiHnn+Vd26DEkvX9S0XklsFfJsYMga3jVJ5 OJKqRObwRC+N1VtjL6P1gPzYfaq1qrMuA1AxYQ+d7xIbt1sNFaFXSkvF8mekB8wVa8 nER02JhsW1DH+6tMPISpJhsXZh2wU0g322xhGAfM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH 5.15 008/776] ASoC: soc-core: call missing INIT_LIST_HEAD() for card_aux_list Date: Sat, 30 May 2026 17:55:22 +0200 Message-ID: <20260530160240.464872417@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160240.228940103@linuxfoundation.org> References: <20260530160240.228940103@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuninori Morimoto [ Upstream commit b9eff9732cb0f86a68c9d1592a98ceab47c01e95 ] Component has "card_aux_list" which is added/deled in bind/unbind aux dev function (A), and used in for_each_card_auxs() loop (B). static void soc_unbind_aux_dev(...) { ... for_each_card_auxs_safe(...) { ... (A) list_del(&component->card_aux_list); } ^^^^^^^^^^^^^ } static int soc_bind_aux_dev(...) { ... for_each_card_pre_auxs(...) { ... (A) list_add(&component->card_aux_list, ...); } ^^^^^^^^^^^^^ ... } #define for_each_card_auxs(card, component) \ (B) list_for_each_entry(component, ..., card_aux_list) ^^^^^^^^^^^^^ But it has been used without calling INIT_LIST_HEAD(). > git grep card_aux_list sound/soc sound/soc/soc-core.c: list_del(&component->card_aux_list); sound/soc/soc-core.c: list_add(&component->card_aux_list, ...); call missing INIT_LIST_HEAD() for it. Signed-off-by: Kuninori Morimoto Link: https://patch.msgid.link/87341mxa8l.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/soc-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index af8554e96035f..da652f2f09b61 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2646,6 +2646,7 @@ int snd_soc_component_initialize(struct snd_soc_component *component, INIT_LIST_HEAD(&component->dobj_list); INIT_LIST_HEAD(&component->card_list); INIT_LIST_HEAD(&component->list); + INIT_LIST_HEAD(&component->card_aux_list); mutex_init(&component->io_mutex); component->name = fmt_single_name(dev, &component->id); -- 2.53.0