[alsa-devel] [PATCH] ASoC: hdac_hdmi: use devm_kzalloc for all structures

Takashi Iwai tiwai at suse.de
Sat Feb 9 10:34:56 CET 2019


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 <pierre-louis.bossart at linux.intel.com>

Looks good to me.
  Reviewed-by: Takashi Iwai <tiwai at suse.de>

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


More information about the Alsa-devel mailing list