summaryrefslogtreecommitdiff
path: root/virt/kvm/irq_comm.c
diff options
context:
space:
mode:
authorWang YanQing <udknight@gmail.com>2013-05-07 11:27:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-19 10:54:36 -0700
commita85550214614cd7e66d995592dbd54b14db50c01 (patch)
tree57508aa8b7093b97186df7dab603457eafa7f015 /virt/kvm/irq_comm.c
parentb03a3c907aa9f1caa0624055374a633a03f8e8b2 (diff)
ALSA: HDA: Fix Oops caused by dereference NULL pointer
commit 2195b063f6609e4c6268f291683902f25eaf9aa6 upstream. 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_probe. This will cause Oops due dereference NULL pointer. I meet it, good luck:) [Rearranged the NULL check before the tracepoint and added another NULL check of bus->workq -- tiwai] Signed-off-by: Wang YanQing <udknight@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm/irq_comm.c')
0 files changed, 0 insertions, 0 deletions