Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36BAAC433E0 for ; Mon, 22 Jun 2020 11:46:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B021720716 for ; Mon, 22 Jun 2020 11:46:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="BoKo3Mg6"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="R9F6qxFc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B021720716 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 381221682; Mon, 22 Jun 2020 13:45:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 381221682 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1592826391; bh=CSpDeQNGGQlPQCF+KzbowInS8wumLcclqnF6BxUAqVw=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=BoKo3Mg6FI9q/HwEDklC1Pc2cE5xur2EGS1VKGmH9fXdy8OyxSO+L93gUiXKKVIqp OSD3WPmSBqV1HhA/TWHkW6InUQJbDzawasN4vgpx3tQE4oJTVM4CJlmKi6v4wjMLXa byEEUyHhW6H9fuwHl85e8TdRuZCzz9lcurdsO2ao= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B4746F8015A; Mon, 22 Jun 2020 13:45:40 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 34A2FF8015B; Mon, 22 Jun 2020 13:45:39 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7E82AF80157 for ; Mon, 22 Jun 2020 13:45:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7E82AF80157 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="R9F6qxFc" Received: from localhost (unknown [171.61.66.58]) (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 BB1EE20716; Mon, 22 Jun 2020 11:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592826334; bh=CSpDeQNGGQlPQCF+KzbowInS8wumLcclqnF6BxUAqVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R9F6qxFcIXjbvrGdQcrd8mBfnqf4iov4uRE7jKXDjuI2p++W8KxD0SgiC6H2DJjfx ARFRxv9hK2qUASiBP9taDXjlrQYa0XsO6g5d9ht9YL4daxNWRCC0LKI9lQtZnWcrk9 7eRh+2kGvU+MPEcl4MOEzfdbGU4aaGJo7Mr3tkhc= Date: Mon, 22 Jun 2020 17:15:30 +0530 From: Vinod Koul To: Pierre-Louis Bossart Subject: Re: [PATCH] soundwire: intel: fix memory leak with devm_kasprintf Message-ID: <20200622114530.GJ2324254@vkoul-mobl> References: <20200617163536.17401-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617163536.17401-1-pierre-louis.bossart@linux.intel.com> Cc: Guennadi Liakhovetski , alsa-devel@alsa-project.org, Kai Vehmanen , tiwai@suse.de, gregkh@linuxfoundation.org, Daniel Baluta , broonie@kernel.org, Bard liao , Rander Wang X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 17-06-20, 11:35, Pierre-Louis Bossart wrote: > The dais are allocated with devm_kcalloc() but their name isn't > resourced managed and never freed. Fix by also using devm_ for the dai > names as well. Applied, thanks -- ~Vinod