lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 04 Nov 2013 09:49:58 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	Nicolin Chen <b42378@...escale.com>
Cc:	<akpm@...ux-foundation.org>, <joe@...ches.com>, <nsekhar@...com>,
	<khilman@...prootsystems.com>, <linux@....linux.org.uk>,
	<dan.j.williams@...el.com>, <vinod.koul@...el.com>,
	<m.chehab@...sung.com>, <hjk@...sjkoch.de>,
	<gregkh@...uxfoundation.org>, <perex@...ex.cz>,
	<lgirdwood@...il.com>, <broonie@...nel.org>,
	<rmk+kernel@....linux.org.uk>, <eric.y.miao@...il.com>,
	<haojian.zhuang@...il.com>, <linux-kernel@...r.kernel.org>,
	<davinci-linux-open-source@...ux.davincidsp.com>,
	<linux-arm-kernel@...ts.infradead.org>,
	<dmaengine@...r.kernel.org>, <linux-media@...r.kernel.org>,
	<alsa-devel@...a-project.org>
Subject: Re: [PATCH][RESEND 6/8] ALSA: memalloc: use gen_pool_dma_alloc() to allocate iram buffer

At Fri, 1 Nov 2013 19:48:19 +0800,
Nicolin Chen wrote:
> 
> Since gen_pool_dma_alloc() is introduced, we implement it to simplify code.
> 
> Signed-off-by: Nicolin Chen <b42378@...escale.com>

Acked-by: Takashi Iwai <tiwai@...e.de>


> ---
>  sound/core/memalloc.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c
> index 9d93f02..5e1c7bc 100644
> --- a/sound/core/memalloc.c
> +++ b/sound/core/memalloc.c
> @@ -184,11 +184,7 @@ static void snd_malloc_dev_iram(struct snd_dma_buffer *dmab, size_t size)
>  	/* Assign the pool into private_data field */
>  	dmab->private_data = pool;
>  
> -	dmab->area = (void *)gen_pool_alloc(pool, size);
> -	if (!dmab->area)
> -		return;
> -
> -	dmab->addr = gen_pool_virt_to_phys(pool, (unsigned long)dmab->area);
> +	dmab->area = gen_pool_dma_alloc(pool, size, &dmab->addr);
>  }
>  
>  /**
> -- 
> 1.8.4
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ