]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: sb8: add a check for request_region
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 04:04:14 +0000 (23:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:16:46 +0000 (09:16 +0200)
commit4c12b50fc86a4bf37441eb7c3765e8c55578cff8
tree5dc00a3540f66c15d6e30c4cb59f3902c6695de2
parentb3a964aea086db87c18da7eac30ea1061e90df8b
ALSA: sb8: add a check for request_region

[ Upstream commit dcd0feac9bab901d5739de51b3f69840851f8919 ]

In case request_region fails, the fix returns an error code to
avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/isa/sb/sb8.c