]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:09 +0000 (16:02 +0200)
commit22e5fc5af3e9f3d3865286b4d214ffaa35b81c38
tree35668d7f4fb34e10c8feefe7dcdb28c162ff1b36
parent0f0c5ea09139777d90729d408b807021f2ea6492
ALSA: n64: check return value after calling platform_get_resource()

[ Upstream commit be471fe332f7f14aa6828010b220d7e6902b91a0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/mips/snd-n64.c