Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp693715ybm; Fri, 29 May 2020 09:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLIocWM/P+bE/DzbqAe+rDx66FGuHvS+84Im5hBGB9tv9z4LCWwAssd1h5XAMGDmQyMf7u X-Received: by 2002:a17:906:4dc3:: with SMTP id f3mr8199425ejw.323.1590771216949; Fri, 29 May 2020 09:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590771216; cv=none; d=google.com; s=arc-20160816; b=NornAqUct/8yygbXuITdSHYxemLLdULDqMvrGGWY2ZxsIBKU0wVwY0IwGgGy3oEBYq 7wij6JchTrrDJTxXk+GHcV0Jgx9Tr5nzbAWjPb+tyOPb7fQHNsO0BfSsbMWghkLZpa/s IXV1V0IQRKzxtw17NxgPSclU2GSoSZvHTsYJRDziXJUgBSsnteEYAZ45/I0XPVjjwwFx DPmhZf2+7dCbZUZOHtWjJ43iolrSVYLHLpYAA7B9H9XsJt93z1aE3sJk9zaHvW8jo1k0 gkrv4xUVMCVbMU5+oYvc5Oy+myOlu/Ew+mJgRnECVPOc3QCnGR+SOLL8sVas1GBg8xrg K6MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:subject:references:in-reply-to :cc:to:from:date:dkim-signature; bh=UzjGYdEKFsklL6/Pa8VpOCnmQDQBXuonQn6D0IHWvBY=; b=REAySq+xhfxvN5AtPS1QR9LtOhOHZRLj0zdchgocui7zkTJqAN4+fFxEVT928zPM0Q fScX2ghv91+kd6gY4NyOqMD2uEoSnpmxOdVWqzjE0pIq8l1yFuo+2/0HW1vr31M8dUqw cEgBYWCtJnZQ9XjC+KQ0shqFCMJjAfm1cAMfKvRqoQC5cYEYbr7PdXYLYGhwh/EVUAby 40wjFqgfqIvquTe2boBXWHGcL5q10Qjv9eUvEV8kQN7F6imb4gsU/TiZz+4CzcscDomy uicKJFtYhtDeUxIhy9RxH+H+x7j5sU5ApXFBqOIDTb1x18ChoKR58yJl1OBRsjYnTz2/ bBOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JvBnWf2+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv15si5544172ejb.663.2020.05.29.09.53.13; Fri, 29 May 2020 09:53:36 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=JvBnWf2+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727045AbgE2QvR (ORCPT + 99 others); Fri, 29 May 2020 12:51:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:42358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgE2QvR (ORCPT ); Fri, 29 May 2020 12:51:17 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CB66207BC; Fri, 29 May 2020 16:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590771076; bh=509pJFb+h4EzxXQ9huxUCMGnV93J5bxttZJZDwp+jKo=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=JvBnWf2+Uk8diKibDr9y6lSOSG/X/cJ4gdmVD5Gx7MIDMJiPoaIACDxzeYRtJQJ+9 nzq6oe000/AbHB7p/WalQfrAl7J2e47miz7jqatUBA3xUWb2D6Iywzo596DjMp5vSW mSw5gTMIug/XgSsduNUIB0VNNah3z8JhFH3W7FGw= Date: Fri, 29 May 2020 17:51:13 +0100 From: Mark Brown To: Xiyu Yang , Liam Girdwood , Takashi Iwai , Timur Tabi , linux-kernel@vger.kernel.org, Jaroslav Kysela , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, Xiubo Li , Fabio Estevam , Nicolin Chen Cc: yuanxzhang@fudan.edu.cn, kjlu@umn.edu, Xin Tan In-Reply-To: <1590415966-52416-1-git-send-email-xiyuyang19@fudan.edu.cn> References: <1590415966-52416-1-git-send-email-xiyuyang19@fudan.edu.cn> Subject: Re: [PATCH] ASoC: fsl_asrc_dma: Fix dma_chan leak when config DMA channel failed Message-Id: <159077105220.28617.9185476806800586420.b4-ty@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 May 2020 22:12:46 +0800, Xiyu Yang wrote: > fsl_asrc_dma_hw_params() invokes dma_request_channel() or > fsl_asrc_get_dma_channel(), which returns a reference of the specified > dma_chan object to "pair->dma_chan[dir]" with increased refcnt. > > The reference counting issue happens in one exception handling path of > fsl_asrc_dma_hw_params(). When config DMA channel failed for Back-End, > the function forgets to decrease the refcnt increased by > dma_request_channel() or fsl_asrc_get_dma_channel(), causing a refcnt > leak. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl_asrc_dma: Fix dma_chan leak when config DMA channel failed commit: 36124fb19f1ae68a500cd76a76d40c6e81bee346 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