diff options
author | Liliang Ye <yll@hust.edu.cn> | 2023-04-03 18:26:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-17 22:16:26 +0300 |
commit | 1c34890273a020d61d6127ade3f68ed1cb21c16a (patch) | |
tree | 75d7c915a74a05bb4c00e274b55d77f031e70a83 /crypto | |
parent | 97c236e2d4628bddbd1ac5877da030f9be291d30 (diff) | |
download | linux-1c34890273a020d61d6127ade3f68ed1cb21c16a.tar.xz |
ASoC: fsl_mqs: move of_node_put() to the correct location
of_node_put() should have been done directly after
mqs_priv->regmap = syscon_node_to_regmap(gpr_np);
otherwise it creates a reference leak on the success path.
To fix this, of_node_put() is moved to the correct location, and change
all the gotos to direct returns.
Fixes: a9d273671440 ("ASoC: fsl_mqs: Fix error handling in probe")
Signed-off-by: Liliang Ye <yll@hust.edu.cn>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/20230403152647.17638-1-yll@hust.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions