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

* Re: [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc  in snd_soc_cnew
  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 22:29   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Liam Girdwood @ 2011-08-22 10:59 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mark Brown, alsa-devel

On 20/08/11 04:03, Axel Lin wrote:
> 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;
>  

Acked-by: Liam Girdwood <lrg@ti.com>

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

* Re: [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
@ 2011-08-22 10:59   ` Liam Girdwood
  0 siblings, 0 replies; 5+ messages in thread
From: Liam Girdwood @ 2011-08-22 10:59 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, Mark Brown, linux-kernel

On 20/08/11 04:03, Axel Lin wrote:
> 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;
>  

Acked-by: Liam Girdwood <lrg@ti.com>

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

* Re: [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc  in snd_soc_cnew
  2011-08-20  3:03 [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew Axel Lin
@ 2011-08-22 22:29   ` Mark Brown
  2011-08-22 22:29   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2011-08-22 22:29 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Liam Girdwood, alsa-devel

On Sat, Aug 20, 2011 at 11:03:44AM +0800, Axel Lin wrote:
> GFP_ATOMIC is not needed here, use GFP_KERNEL instead.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks.

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

* Re: [PATCH] ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
@ 2011-08-22 22:29   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2011-08-22 22:29 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, linux-kernel, Liam Girdwood

On Sat, Aug 20, 2011 at 11:03:44AM +0800, Axel Lin wrote:
> GFP_ATOMIC is not needed here, use GFP_KERNEL instead.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks.

^ permalink raw reply	[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.