]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: intel8x0: Fix missing check in snd_intel8x0m_create
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 31 Jan 2021 10:09:14 +0000 (18:09 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Feb 2021 08:17:01 +0000 (09:17 +0100)
commit0074946932cbd42647da947408a9d620746a4e0e
tree29f227af6c94b3743acf79982b15dea312770544
parent0417fadab493b55093ba2590f4e66c828f7084fe
ALSA: intel8x0: Fix missing check in snd_intel8x0m_create

When device_type == DEVICE_ALI, we should also check the return
value of pci_iomap() to avoid potential null pointer dereference.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20210131100916.7915-1-dinghao.liu@zju.edu.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/intel8x0m.c