mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
81a081fff7
commit
57cf9d4512
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue