SEARCH  

NEWS

2010.10.06:11:36:28
Nie podał hasła, trafił za kratki
W ten sposób brytyjski sąd chce zmusić nastolatka do podania hasła szyfrującego jego komputer. Sprawa jest poważna, dotyczy bowiem seksualnego wykorzystywania dzieci.

 

messageID:533260007452
author:Kuninori Morimoto
title: PATCH 4 5 v2 fbdev sh mobile hdmi add new
This patch solve below report from Guennadi /* External video parameter settings */ static void hdmi_external_video_param(struct sh_hdmi *hdmi) { @@ -804,6 +862,11 @@ static int __init sh_hdmi_probe(struct platform_device *pdev) return -ENOMEM; } + ret = snd_soc_register_codec(&pdev- dev, + &soc_codec_dev_sh_hdmi, &sh_hdmi_dai, 1); + if (ret < 0) + goto egetclk; + hdmi- dev = &pdev- dev; hdmi- hdmi_clk = clk_get(&pdev- dev, "ick"); NAK. This breaks the error path and has to be fixed. Firstly, please, use a new label like "esndreg," secondly, you have to add clk_disable(hdmi- hdmi_clk); erate: clk_put(hdmi- hdmi_clk); egetclk: + snd_soc_unregister_codec(&pdev- dev); +esndreg: mutex_destroy(&hdmi- mutex); kfree(hdmi); Reported-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx --- v1 - v2 o add Guennadis mail on log area drivers/video/sh_mobile_hdmi.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c index a2cb492..ef989d9 100644 --- a/drivers/video/sh_mobile_hdmi.c +++ b/drivers/video/sh_mobile_hdmi.c @@ -967,7 +967,7 @@ static int __init sh_hdmi_probe(struct platform_device *pdev) ret = snd_soc_register_codec(&pdev- dev, &soc_codec_dev_sh_hdmi, &sh_hdmi_dai, 1); if (ret < 0) - goto egetclk; + goto esndreg; hdmi- dev = &pdev- dev; @@ -1054,6 +1054,8 @@ eclkenable: erate: clk_put(hdmi- hdmi_clk); egetclk: + snd_soc_unregister_codec(&pdev- dev); +esndreg: kfree(hdmi); return ret; -- 1.7.0.4 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx rel="nofollow" mailman.alsa-project.org/mailman/listinfo/alsa-devel mailman.alsa-project.org/mailman/listinfo/alsa-devel
Index