Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp962282rbd; Fri, 23 Feb 2024 08:47:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbNy8vlws5JcamXE6rYcAmqG/RUDfmJnR34668z0M8CoLJnENHN0EeK3x9oxUsq64xCoGybnsAyMvXybcs7U4L8oDJFDRr3FYZFQdKXg== X-Google-Smtp-Source: AGHT+IFWqFYQtIyreOGWF7dgV8BOtnbe2+buqtsQvP8Taog9TYmAhjE0/W2RfA+AiEuBj3HTBnIF X-Received: by 2002:a05:6358:4904:b0:178:99cc:e52e with SMTP id w4-20020a056358490400b0017899cce52emr499172rwn.20.1708706851347; Fri, 23 Feb 2024 08:47:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708706851; cv=pass; d=google.com; s=arc-20160816; b=M5iX1ZdqQimpzHzxcEp+h0Mp2bKlLBE7jIT3YwofEkChD8IeczkxtApFol7W8Dbs0K EkF/xGG6MTz6egsDkh6WFug21yMY6gCOUSMm7P6OzW2v5NtISCjzOepscJH3+LQVJI2y QQ45yblOlG5ki9KTjAfns6CBk00D0vpXwiQ1nwFNq6Tbwy6tgwpCg5MuYgf8i/XoJfSf Mg9b1vYJ0Xbo+A1TMugSxd04N8gmxVza5bhFVKvd32j2cvQky4d0uUyBteRbafrs35qJ hDSO9F/tIaYz93Xr2NPmSz4+4GxudGAhmwN4WkAatIW8zMnTxTg9sx7yZFfJ0iBVSXQ+ 2aHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=1e/eiFFIeBKI5gOAzECIgoBb+FJ5a0k89NgDNTrBYYg=; fh=oBOW/uihpiOjTlRlVUD7v+fP/7+amnruEanVHu98nUA=; b=ssN5EOiHcyuoJqORBEQaMVfFE+tKLlaO2QUNWnfgUUQcs8izq1u5TZ+B+ExE/E/ak9 Tu3EYb7ztMeLcytnGWZJOenOCPXiH8QRbHfAZU2KXvntfx7xXTq/vZDIQhtwEZtSH5VQ SVAGY17i/XTW3kWQm4CpcQWBpu98sL5msXg5f4+56IgEymQEkZzI/5ymWai0w4YtFVWV +FpK00YMhLuKC0j0US3V3lHKQ0Ozu3TFfkpowQxoYDNaom088bULgciPKWBxGPMeEBwS HMQkFUbdXEuQ/l+yK6LI2gVPBte2FkS7zP5BoVf1uwtEETtR4cmg8PJBDHTGiECqpwHl oGmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="a/ldrGtS"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l190-20020a6391c7000000b005d8e283c1ebsi12236843pge.840.2024.02.23.08.47.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="a/ldrGtS"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09390283F50 for ; Fri, 23 Feb 2024 16:47:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1A34129A8E; Fri, 23 Feb 2024 16:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a/ldrGtS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D57603FF1; Fri, 23 Feb 2024 16:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708706824; cv=none; b=ewI/C7tYjacCcc5TNC8dqLadwlsR23ODPIePYjczOCWOevrm6DHxmhsEf6RwYrbFzrUFqOnmhV4GYYHF+OarjpfXDbXY4mllJyNArtmGH6w5jqiCVUeBbiGmBR3MMFhJJmI6+2+8IamwFlDzsGwsXrXzo4ygPtZpeoZiPSRuTSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708706824; c=relaxed/simple; bh=BesFWAtuTprjWylLkXSgMFyYOvsUukjAQwbOy9l/KHM=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=fACDoh/dPGoUa/3R+8xKQY8sdBJ91boWcsBEhjgBx+xE4NKqYcVxSwtO521Po0Yf5VCKfZd8FUox8Cw5x/l8PrjhiY8jM9HVMrxMD8Iob9Y0SVRSWJHr451Jy5mwj+j1PI4kkbeUzoFFe3T0q/CwsWVt7+hPP6VB/scl50Kr2Xw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a/ldrGtS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A36D1C43390; Fri, 23 Feb 2024 16:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708706824; bh=BesFWAtuTprjWylLkXSgMFyYOvsUukjAQwbOy9l/KHM=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=a/ldrGtSSfN/5ylfj5KLaM0svgwwTwG7L3iT1TvCMv+me9j8uswywGNPKVtvDO/pv jvHa9sxagoBw0mc5TWkO3GCU9qxBMj1D5cBTiPNGowEox60TSujga1DTrdunar2KFh 6HjqrLlVB/V7tQqQwBFkTnUZiABawY79VDb0j4FFGN8tj5kH+dgST9txDFV5xag2PJ c8Kk/SyrNrcFP5S29sD8T/HzhlALn4tcF+scn0J8bHTQq1B2ycE9HBRRpj9GeGQlwk Rv/BaMwFdAz49QF9s/ys7R2s8i/rPG3mpJfMkNtYfM/qI3iyb5qGtCKPlvrFip0StD QSWEMbQo16JLA== From: Mark Brown To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, Richard Fitzgerald Cc: linux-sound@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, patches@opensource.cirrus.com In-Reply-To: <20240221123710.690224-1-rf@opensource.cirrus.com> References: <20240221123710.690224-1-rf@opensource.cirrus.com> Subject: Re: [PATCH] ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol() Message-Id: <170870682233.2835191.8056467761867046237.b4-ty@kernel.org> Date: Fri, 23 Feb 2024 16:47:02 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-0438c On Wed, 21 Feb 2024 12:37:10 +0000, Richard Fitzgerald wrote: > snd_soc_card_get_kcontrol() must be holding a read lock on > card->controls_rwsem while walking the controls list. > > Compare with snd_ctl_find_numid(). > > The existing function is renamed snd_soc_card_get_kcontrol_locked() > so that it can be called from contexts that are already holding > card->controls_rwsem (for example, control get/put functions). > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol() commit: eba2eb2495f47690400331c722868902784e59de 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