]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda: Fix possible null-ptr-deref when assigning a stream
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 6 Oct 2023 10:28:55 +0000 (12:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:45:43 +0000 (16:45 +0000)
commit7de25112de8222fd20564769e6c99dc9f9738a0b
treefbe9974e202a169438993ea269fffbef08317288
parent2308d0fb0dc32446b4e6ca37cd09c30374bb64e9
ALSA: hda: Fix possible null-ptr-deref when assigning a stream

[ Upstream commit f93dc90c2e8ed664985e366aa6459ac83cdab236 ]

While AudioDSP drivers assign streams exclusively of HOST or LINK type,
nothing blocks a user to attempt to assign a COUPLED stream. As
supplied substream instance may be a stub, what is the case when
code-loading, such scenario ends with null-ptr-deref.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20231006102857.749143-2-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/hda/hdac_stream.c