]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: intel: Use kvzalloc() for suspend buffers
authorTakashi Iwai <tiwai@suse.de>
Fri, 16 Jun 2017 09:20:29 +0000 (11:20 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 16 Jun 2017 10:26:36 +0000 (11:26 +0100)
commitcd17fe15a9cd668dd954d1605e34b6193193439e
tree65ba2883b8cd5f7cb3c40728932fa4b53872ea13
parentd41d416bb5a49275d37a51d4449eea5764d4a9a3
ASoC: intel: Use kvzalloc() for suspend buffers

Intel SST driver allocates lots of pages at suspend for saving the
firmware states, and this may occasionally lead to the allocation
error due to the high order, ending up with the suspend failure.

Use kvzalloc() so that it can fall back to vmalloc() gracefully.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst.c
sound/soc/intel/atom/sst/sst.h