Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 18:10:53 +0200, Wang YanQing wrote: > > On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > > return failure, we need to free resource with patch_ops.free, or we will > > get resource leak.

Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 18:10:53 +0200, Wang YanQing wrote: > > On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > > return failure, we need to free resource with patch_ops.free, or we will > > get resource leak.

Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > return failure, we need to free resource with patch_ops.free, or we will > get resource leak. > > Signed-off-by: Wang YanQing > --- >

Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > return failure, we need to free resource with patch_ops.free, or we will > get resource leak. > > Signed-off-by: Wang YanQing > --- >

[PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls return failure, we need to free resource with patch_ops.free, or we will get resource leak. Signed-off-by: Wang YanQing --- sound/pci/hda/hda_codec.c | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls return failure, we need to free resource with patch_ops.free, or we will get resource leak. Signed-off-by: Wang YanQing --- sound/pci/hda/hda_codec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git