Re: [PATCH]ALSA: HDA: Fix Oops caused by dereference NULL pointer

2013-05-06 Thread Takashi Iwai
At Tue, 7 May 2013 11:27:33 +0800, Wang YanQing wrote: > > The interrupt handler azx_interrupt will call azx_update_rirb, > which may call snd_hda_queue_unsol_event, snd_hda_queue_unsol_event > will dereference chip->bus pointer. > > The problem is we alloc chip->bus in azx_codec_create > which w

[PATCH]ALSA: HDA: Fix Oops caused by dereference NULL pointer

2013-05-06 Thread Wang YanQing
The interrupt handler azx_interrupt will call azx_update_rirb, which may call snd_hda_queue_unsol_event, snd_hda_queue_unsol_event will dereference chip->bus pointer. The problem is we alloc chip->bus in azx_codec_create which will be called after we enable IRQ and enable unsolicited event in azx_