Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3922096ybl; Tue, 21 Jan 2020 09:28:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwls/VP/Gdcybvd43j9Bw2DU1WIZHRIxo7ziTsZQLbCU9D++rJksrLyf5ftPylPIFcQqV/e X-Received: by 2002:aca:c786:: with SMTP id x128mr3648983oif.2.1579627690445; Tue, 21 Jan 2020 09:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579627690; cv=none; d=google.com; s=arc-20160816; b=FGaSwPebka1P07ZffnbTvki1QJ9HKoeKiFn2FtEl3NHp4w5iN7QGiViU6RTf+8S6Jx 4oOjtzRd2zH7Ep94IM5/TUpcYHLAPQ0napLODyoKx+fK/Vw7teL+4/a/zP0ktcZ+Vfwa S1NsD7a3GnTklHVYEidyT40BJk5ytiKKTZYidteg4GT+RP1IRjUu52Gi3KfWM+UXlhkC 7eiOX+Ff3Z1XjA3FtD/tZmVVaaIL8Erb29B6xYv3sh8Ul6zq++Gg091aIeQagDcnI02s XSDaIPrvp4vjHqqWU5jNYZb/gNmU3TMG3I3wZgHtUN1kjWQN/yEf49AOTd+o9mzjKM9a DjKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UYuH3GatAwLAS+BjVS/r/oABYKl/V002AD3lnRbn0Rs=; b=UbfJZtrIF81sDpGKCRtgh8QjUnzs+GXPPJO3wSM7tOFpK651QoQTnNRguya5dU0Lcs +aIRu9KwuPzr8OAL0GkkGAoj3UPf30XF1nrIRJVy2zNQ4g+QXWXFZQvkw7iOJAA3Mzx/ YkMI0WOpRU35hEfCmYDCt6ExDZlf7Hl15RYv/PYv/aADSTaQWUv+vF3l2L0tT9j7itoT sfbG7D5prtmDYU83t7NbThFFkMogOUJzBWEIFU3AjCOc2EfJHO3TgANmu0v8JmMyPvaM JdGXWD4LHaZt28y9ImLBm1F5iKjeY0X7F4ZvkDEM2tvn2MTBjpEGO2FtVRghkN1/x7nZ VydQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si19714232otk.261.2020.01.21.09.27.57; Tue, 21 Jan 2020 09:28:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729113AbgAUR07 (ORCPT + 99 others); Tue, 21 Jan 2020 12:26:59 -0500 Received: from foss.arm.com ([217.140.110.172]:46332 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729080AbgAUR07 (ORCPT ); Tue, 21 Jan 2020 12:26:59 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3040E30E; Tue, 21 Jan 2020 09:26:59 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A064B3F6C4; Tue, 21 Jan 2020 09:26:58 -0800 (PST) Date: Tue, 21 Jan 2020 17:26:57 +0000 From: Mark Brown To: "RAVULAPATI, VISHNU VARDHAN RAO" Cc: "Deucher, Alexander" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , "Mukunda, Vijendar" , Colin Ian King , YueHaibing , Kuninori Morimoto , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH] ASoC: amd: Fix for Subsequent Playback issue. Message-ID: <20200121172657.GK4656@sirena.org.uk> References: <1579603421-24571-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> <20200121165925.GH4656@sirena.org.uk> <20200121170811.GJ4656@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zPXeIxDajdrcF2en" Content-Disposition: inline In-Reply-To: X-Cookie: You too can wear a nose mitten. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zPXeIxDajdrcF2en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 21, 2020 at 05:12:42PM +0000, RAVULAPATI, VISHNU VARDHAN RAO wrote: Please fix your mailer to quote replies normally, it's hard to read your mails. > In what way is it part of the fix? This at least needs some sort of > explanation somewhere, the changelog at least if not the code. > When we play subsequently we hear last played sound for moment.kfree clears the structure. If the rtd is still being referenced after the kfree() you have a use after free bug so there's a serious problem there and this change is introducing a bug, you can only free things if they are not in use. At a bare minimum I need the changelog to clearly explain what the cause of the clicks is and how the change fixes that. --zPXeIxDajdrcF2en Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4nNGAACgkQJNaLcl1U h9CM4wf9HXTZtK9+VuEbzuneGipxxDkweRo9fNWDmS99cGqfZ4b02i/Cudd1lseC UFrh2Wdi+7RL5mSZhaGqi9XSgfgrl+rVPtX/MTKZ81OjzU49YIoMBf7jGi5Hvt7f 8wfoyzpnQ+mPecpWLQr9K2krccs2I/H40U/qOY9YHYraAKq1sM3qYZL0jKa45PYH CL80QIqHSVKyf6k3aptNYv045aqVKyZ992lSmGBa2zud+kdsUEimJNtado1bm3fX QSthv9uf8J3sOBJZ76yjDPRt9miQ1qt8DSsPCw+dJ9zONy8ZSVN68EshAhFhqMvH khbp0nAECP4U9cdYcWW2Ni2gaNqSVA== =Bp1m -----END PGP SIGNATURE----- --zPXeIxDajdrcF2en--