[PATCH v2 1/1] powerpc: fix a memory leak

2023-09-14 Thread Yuanjun Gong
When one of the methods xive_native_alloc_irq_on_chip, irq_create_mapping or irq_get_handler_data fails, the function will directly return without disposing vinst->name and vinst. Fix it. Fixes: c20e1e299d93 ("powerpc/vas: Alloc and setup IRQ and trigger port address") Signed-of

[PATCH 1/1] powerpc: fix a memory leak

2023-09-14 Thread Yuanjun Gong
When one of the methods xive_native_alloc_irq_on_chip, irq_create_mapping or irq_get_handler_data fails, the function will directly return without disposing vinst->name and vinst. Fix it. Fixes: c20e1e299d93 ("powerpc/vas: Alloc and setup IRQ and trigger port address") Signed-of

[PATCH v3 1/1] ASoC: imx-audmux: fix return value checks of clk_prepare_enable()

2023-07-24 Thread Yuanjun Gong
check the return value of clk_prepare_enable(), and if clk_prepare_enable() gets an unexpected return value, imx_audmux_suspend() and imx_audmux_resume() should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 12 1 file changed, 8 insertions

[PATCH v2 1/1] ASoC: imx-audmux: fix return value checks of clk_prepare_enable()

2023-07-22 Thread Yuanjun Gong
check the return value of clk_prepare_enable(), and if clk_prepare_enable() gets an unexpected return value, imx_audmux_suspend() and imx_audmux_resume() should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 10 -- 1 file changed, 8 insertions(+), 2

[PATCH 1/1] sound:soc: fix return value check in imx_audmux_suspend

2023-07-17 Thread Yuanjun Gong
check the return value of clk_prepare_enable, and if clk_prepare_enable got an unexpected return value, imx_audmux_suspend should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc

[PATCH 1/1] sound:soc: fix return value check in imx_audmux_resume

2023-07-17 Thread Yuanjun Gong
check the return value of clk_prepare_enable, and if clk_prepare_enable got an unexpected return value, imx_audmux_resume should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc