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:12:34 +0000 (08:12 +0100)
commit3d963c98d796f4e065579b234597f838164b8003
tree830b68d81ef00fa7cb640014fe4c68b9638533e6
parentefccd43d994a6450a25ab3c64c2b9f4327cc2657
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