ASoC: atom: fix a missing check of snd_pcm_lib_malloc_pages
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 02:29:48 +0000 (20:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:13:42 +0000 (08:13 +0100)
commit27657a6aee5946d64a7211afca59d8cc3b1fda82
treedef51db2d1d4f2d5e2de5a69f4148c4ca0afaf4f
parentd1b8cba6a3445ae9a7ea619b7cecac766651ec72
ASoC: atom: fix a missing check of snd_pcm_lib_malloc_pages

commit 44fabd8cdaaa3acb80ad2bb3b5c61ae2136af661 upstream.

snd_pcm_lib_malloc_pages() may fail, so let's check its status and
return its error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/atom/sst-mfld-platform-pcm.c