summaryrefslogtreecommitdiff
path: root/sound/pci/aw2
diff options
context:
space:
mode:
authorWang YanQing <udknight@gmail.com>2013-05-07 03:27:33 (GMT)
committerTakashi Iwai <tiwai@suse.de>2013-05-07 05:31:59 (GMT)
commit2195b063f6609e4c6268f291683902f25eaf9aa6 (patch)
tree49673707b98bf6aa4dd3a150583d8137bc32568f /sound/pci/aw2
parent5a4ca9b3fa24f81298c13a27c03c6dd4087ca159 (diff)
downloadlinux-fsl-qoriq-2195b063f6609e4c6268f291683902f25eaf9aa6.tar.xz
ALSA: HDA: Fix Oops caused by dereference NULL pointer
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> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/aw2')
0 files changed, 0 insertions, 0 deletions