All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc  in snd_soc_cnew
@ 2011-08-20  3:03 Axel Lin
  2011-08-22 10:59   ` Liam Girdwood
  2011-08-22 22:29   ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2011-08-20  3:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: Liam Girdwood, Mark Brown, alsa-devel

GFP_ATOMIC is not needed here, use GFP_KERNEL instead.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/soc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index ae93aa8..b6d8716 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -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;
 
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-22 22:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-20  3:03 [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew Axel Lin
2011-08-22 10:59 ` Liam Girdwood
2011-08-22 10:59   ` Liam Girdwood
2011-08-22 22:29 ` Mark Brown
2011-08-22 22:29   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.