Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp746888iog; Mon, 13 Jun 2022 12:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/9GXGTqcmV3vAi5ZmHNx6eTbcNjstVaMQKyE+Al4lyr2WpyRNMLyz1QWXmHV45M05AAfR X-Received: by 2002:a05:6402:d0a:b0:425:d455:452 with SMTP id eb10-20020a0564020d0a00b00425d4550452mr1352511edb.259.1655146924901; Mon, 13 Jun 2022 12:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655146924; cv=none; d=google.com; s=arc-20160816; b=es3t39sCKKHU9dZznqMffactEaQTV2J/Pe1eG7m8H0Jp8K0VGdjne9+c1a4/UtQ7+3 xahbfOLnTC31Sm4m/JFHVNadPeC1Lc7/JHpUqY4rzzE29mJCjHVSDylOtOgoU0MO92uW NY5C6OjCgvTD88v3eO742tOeYxt7+25keH2m5PluGkNF+TpfKqC8ML5wSAXjjWIOSK5d 93Uy/JkrqAu/XLAm4xiJaDrArYP+91Vi/c23bxloNuwBMUNzbXKBiu1SuXlSORrlMahh tB0XaoeiO3qQV6dLlO89wWWG6YiLtNmifT2AsI/BIPPKxy2og/4ZLtvWbMdgRYlKnBoC /eKw== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=DGXE/hhGIne6UduDmkX49vZbuncLnjIqEYJ5oOjR3aY=; b=fQlcRfAsaPfFdfOnN3xxLymYUFCgkpAiN4L5HQJPUTth2YYbqQFEhALoBU7zjifgkU VBuxDhjsiLPbyovaAxxeIf/X2XojJSzhQyiWR41gVU4nvsn8qX1faz4GHT+Xdq4rAAF7 zJmopus7w5o4ykGTQ1VFEpSEB2leGS4v8zDLaGtBbzdnAV0wV3/nk55U0Fp+eNl3LmF0 uabZmjVkxYbivmxfKjhkgAGlC+Yy1b5sCfFiDorurIY13nwqF74KfrmEr8L+y3T8IWT3 DklGRiM0LPnKunwt8bAZJ0MwuJb0oezKcVkN+cL+FgXw7QMa4WXab0Tw1B8FZdVSLMBP AiIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+BRpCEH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a1709063f4400b006ff21423705si7614939ejj.323.2022.06.13.12.01.39; Mon, 13 Jun 2022 12:02:04 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+BRpCEH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345765AbiFMS7t (ORCPT + 99 others); Mon, 13 Jun 2022 14:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345578AbiFMS61 (ORCPT ); Mon, 13 Jun 2022 14:58:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E34F29817; Mon, 13 Jun 2022 09:07:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1339261523; Mon, 13 Jun 2022 16:07:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A25DAC3411C; Mon, 13 Jun 2022 16:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655136477; bh=tfjRnPB5emG2L4Jef72rHm8N5OHicWHsvAUn6VvcjmU=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=l+BRpCEHp3ZqrvfTlaeybd8XxUuh/8/GU9hy6eiahvhAHgcL/QTzRyoYO8E+R5tqE wrpFVFCuARhQpYHkb5Q3zKEoSAdxJxrPuQYh2z1q60zpIMi54eWvaoQE7jUKrpev02 ffBgOfSEruQveZSVakIoLHFndG78oxdVJno+ePJ1bpTiEhaX4yCW6/MBmN/dmGvcZ7 uwxh00lYIA6r6kscLMo+gdo0KLjz/rQ3EUZUvjDl0hc4H8CbItrI43i8mxwIAh5Q0i ts/PEyjmhyKlRo8i9vsLkEycPp/90b9hUl1omsy+bXOJyfAFz1ASXdVAW7ufEK1MDR FdipfA0UvuPHQ== From: Mark Brown To: perex@perex.cz, yassine.oudjana@gmail.com, lgirdwood@gmail.com, srinivas.kandagatla@linaro.org, tiwai@suse.com Cc: linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, y.oudjana@protonmail.com, linux-kernel@vger.kernel.org In-Reply-To: <20220606152226.149164-1-y.oudjana@protonmail.com> References: <20220606152226.149164-1-y.oudjana@protonmail.com> Subject: Re: [PATCH] ASoC: wcd9335: Remove RX channel from old list before adding it to a new one Message-Id: <165513647538.514792.3755540877211595484.b4-ty@kernel.org> Date: Mon, 13 Jun 2022 17:07:55 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, 6 Jun 2022 19:22:26 +0400, Yassine Oudjana wrote: > From: Yassine Oudjana > > Currently in slim_rx_mux_put, an RX channel gets added to a new list > even if it is already in one. This can mess up links and make either > it, the new list head, or both, get linked to the wrong entries. > This can cause an entry to link to itself which in turn ends up > making list_for_each_entry in other functions loop infinitely. > To avoid issues, always remove the RX channel from any list it's in > before adding it to a new list. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: wcd9335: Remove RX channel from old list before adding it to a new one commit: 7263fc6c71c3a88c17a1ce3565b7b6f378d13878 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark