OSDN Git Service

ALSA: n64: check return value after calling platform_get_resource()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 10 Jun 2021 12:49:58 +0000 (20:49 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jun 2021 07:31:13 +0000 (09:31 +0200)
commitbe471fe332f7f14aa6828010b220d7e6902b91a0
tree11ff83c132a4653480c82ade24024ae0a90eab3e
parent01893553e67c768985dc1531fa89fb04aa5134ce
ALSA: n64: check return value after calling platform_get_resource()

It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210610124958.116142-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/mips/snd-n64.c