]> 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)
commitc18030451533edf9582481622a8e40c5bf099689
tree65ba2883b8cd5f7cb3c40728932fa4b53872ea13
parentc4006e90d26b84525afb57dd64070241b5509c72
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