From: Vinod Koul Date: Fri, 20 Apr 2018 10:44:28 +0000 (+0530) Subject: ASoC: Intel: bytcr_rt5651: Replace GFP_ATOMIC with GFP_KERNEL X-Git-Tag: v4.18-rc1~127^2^2~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa5398e1e90bd08078797570e2bcda1b15934979;p=thirdparty%2Fkernel%2Flinux.git ASoC: Intel: bytcr_rt5651: Replace GFP_ATOMIC with GFP_KERNEL In snd_byt_rt5651_mc_probe which is not atomic context, we use GFP_ATOMIC flag with memory allocation, fix that by using GFP_KERNEL. Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c index 1b1997f1d60c8..3c7d93520c526 100644 --- a/sound/soc/intel/boards/bytcr_rt5651.c +++ b/sound/soc/intel/boards/bytcr_rt5651.c @@ -734,7 +734,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev) int dai_index = 0; int i; - priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_ATOMIC); + priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM;