]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: hdac_hdmi: use devm_kzalloc for all structures
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 8 Feb 2019 23:26:53 +0000 (17:26 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 11 Feb 2019 16:01:59 +0000 (16:01 +0000)
commit0634af0045cbde69c53a677abfc3f1bf0df4f461
tree5b508c17914f4ee40921d43bc1b75a9c9902c59f
parent6638359b97239f8b93c8c525fc33060e9b68e78e
ASoC: hdac_hdmi: use devm_kzalloc for all structures

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@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c