From: Takashi Iwai Subject: Re: [PATCH] ASoC: hdac_hdmi: use devm_kzalloc for all structures Date: Sat, 09 Feb 2019 10:34:56 +0100 Message-ID: References: <20190208232653.6696-1-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E97FF267437 for ; Sat, 9 Feb 2019 10:34:56 +0100 (CET) In-Reply-To: <20190208232653.6696-1-pierre-louis.bossart@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, vkoul@kernel.org List-Id: alsa-devel@alsa-project.org On Sat, 09 Feb 2019 00:26:53 +0100, Pierre-Louis Bossart wrote: > > Loading/unloading modules exposes issues with memory allocation, which > is a mix of devm_kzalloc and manual kzalloc. Move to devm_k routines > everywhere to simplify all this. > > Signed-off-by: Pierre-Louis Bossart Looks good to me. Reviewed-by: Takashi Iwai hdev->dev is the codec device object, not the host, and the codec release callback doesn't conflict with any these objects, so it must be OK. thanks, Takashi