WSL2-Linux-Kernel/sound/soc/qcom
Dinghao Liu c1e6414cdc
ASoC: qcom: common: Fix refcount imbalance on error
for_each_child_of_node returns a node pointer np with
refcount incremented. So when devm_kzalloc fails, a
pairing refcount decrement is needed to keep np's
refcount balanced.

Fixes: 16395ceee1 ("ASoC: qcom: common: Fix NULL pointer in of parser")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20200820042828.10308-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-26 19:26:58 +01:00
..
qdsp6 ASoC: q6routing: add dummy register read/write function 2020-08-11 14:05:48 +01:00
Kconfig ASoC: qcom: apq8016_sbc: Use qcom_snd_parse_of() 2020-07-24 15:01:19 +01:00
Makefile ASoC: qcom: make common.c as proper module 2018-08-06 12:50:04 +01:00
apq8016_sbc.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
common.c ASoC: qcom: common: Fix refcount imbalance on error 2020-08-26 19:26:58 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
lpass-apq8016.c ASoC: qcom: Use the defined variable to simplify code 2020-05-04 16:23:25 +01:00
lpass-cpu.c ASoC: qcom: lpass-cpu: Make I2S SD lines configurable 2020-05-05 13:17:23 +01:00
lpass-ipq806x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
lpass-lpaif-reg.h ASoC: qcom: lpass-cpu: Make I2S SD lines configurable 2020-05-05 13:17:23 +01:00
lpass-platform.c ASoC: qcom: use asoc_substream_to_rtd() 2020-07-23 19:07:33 +01:00
lpass.h ASoC: qcom: lpass-cpu: Make I2S SD lines configurable 2020-05-05 13:17:23 +01:00
sdm845.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00