mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 19:56:45 +07:00
70b773219a
Although qcom_snd_parse_of() tries to manage the of-node refcount,
there are still a few places that lead to the unblanced refcount in
the error code path. Namely,
- for_each_child_of_node() needs to unreference the iterator node if
aborting the loop in the middle,
- cpu, codec and platform node objects have to be unreferenced at each
iteration,
- platform and codec node objects have to be referred before jumping
to the error handling code that unreference them unconditionally.
This patch tries to address these by moving the assignment of platform
and codec node objects to the beginning of the loop and adding the
of_node_put() calls adequately.
Fixes:
|
||
---|---|---|
.. | ||
qdsp6 | ||
apq8016_sbc.c | ||
apq8096.c | ||
common.c | ||
common.h | ||
Kconfig | ||
lpass-apq8016.c | ||
lpass-cpu.c | ||
lpass-ipq806x.c | ||
lpass-lpaif-reg.h | ||
lpass-platform.c | ||
lpass.h | ||
Makefile | ||
sdm845.c | ||
storm.c |