Re: [PATCH] ASoC: qcom: common: Fix refcount imbalance on error

2020-08-26 Thread Mark Brown
On Thu, 20 Aug 2020 12:28:27 +0800, Dinghao Liu wrote: > 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. Applied to

[PATCH] ASoC: qcom: common: Fix refcount imbalance on error

2020-08-19 Thread Dinghao Liu
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: 16395ceee11f8 ("ASoC: qcom: common: Fix NULL pointer in of parser") Signed-off-by: Dinghao Liu ---