ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
PATCH 1/1 ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
GFP_ATOMIC is not needed here, use GFP_KERNEL instead.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/soc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +1 -1
@@ -1913,7 +1913,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,if (prefix) { name_len =strlen (long_name) +strlen (prefix) +2 ; - name =kmalloc (name_len,GFP_ATOMIC ); + name =kmalloc (name_len,GFP_KERNEL );if (!name)return NULL ;
Signature · 1 line
1.7.4.1
Quoted 12 lines · Axel Lin
GFP_ATOMICis not needed here, useGFP_KERNELinstead.Signed-off-by Axel Lin <[email protected]>--- sound/soc/soc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)sound/soc/soc-core.c +0
-0
sound/soc/soc-core.c struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template, · line 1919
Quoted 8 lines
sound/soc/soc-core.c +1
-1@@ -1913,7 +1913,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,if (prefix) { name_len =strlen (long_name) +strlen (prefix) +2 ; - name =kmalloc (name_len,GFP_ATOMIC ); + name =kmalloc (name_len,GFP_KERNEL );if (!name)return NULL ;
Acked-by Liam Girdwood <[email protected]>
Mark Brown
AppliedQuoted 3 lines · Axel Lin
GFP_ATOMICis not needed here, useGFP_KERNELinstead.Signed-off-by Axel Lin <[email protected]>
Applied, thanks.