Re: [PATCH] ASoC: loongson: fix error release

From: Markus Elfring
Date: Sun Sep 08 2024 - 12:33:05 EST


> In function loongson_card_parse_of(), when get device_node

device node?


> 'codec' failed, the function of_node_put(codec) should not
> be invoked, thus fix error release.

exception handling?

How do you think about to increase the application of scope-based resource management?



> Signed-off-by: tangbin <tangbin@xxxxxxxxxxxxxxxxxxxx>

Is an other personal name preferred here according to the Developer's Certificate of Origin?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.11-rc6#n396

Regards,
Markus