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:15:55 +0000 (09:15 +0200)
commit317e716a8ad99f367feaf11d388dd597f832b3b1
treec0cf85123d55c7b891064f8300478de711afe959
parent17829309ec00adf3dba1644d64b09a5329829870
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