Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9d99f312629802f4c45306ee07618ee4978b4adc
Commit:     9d99f312629802f4c45306ee07618ee4978b4adc
Parent:     918f3a0e8cf67b5db966516f255eaf24d814fac0
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 14 15:15:52 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:58:55 2007 +0200

    [ALSA] hda-intel - Fix NULL dereference in resume
    
    codec->patch_ops.init can be NULL.  Check before calling it.
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/hda/hda_codec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index efd56a3..fc1ddf4 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1677,7 +1677,8 @@ static void hda_call_codec_resume(struct hda_codec *codec)
        if (codec->patch_ops.resume)
                codec->patch_ops.resume(codec);
        else {
-               codec->patch_ops.init(codec);
+               if (codec->patch_ops.init)
+                       codec->patch_ops.init(codec);
                snd_hda_codec_resume_amp(codec);
                snd_hda_codec_resume_cache(codec);
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to