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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 16 Jun 2014 09:55:13 -0500
From:	Nathan Fontenot <nfont@...ux.vnet.ibm.com>
To:	Fabian Frederick <fabf@...net.be>, linux-kernel@...r.kernel.org
CC:	Marcelo Henrique Cerri <mhcerri@...ux.vnet.ibm.com>
Subject: Re: [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead
 of IS_ALIGNED(PAGE_SIZE

On 06/14/2014 05:09 PM, Fabian Frederick wrote:
> use mm.h definition
> 
> Cc: Nathan Fontenot <nfont@...ux.vnet.ibm.com>
> Cc: Marcelo Henrique Cerri <mhcerri@...ux.vnet.ibm.com>
> Signed-off-by: Fabian Frederick <fabf@...net.be>

Acked-by: Nathan Fontenot <nfont@...ux.vnet.ibm.com>

> ---
>  drivers/crypto/nx/nx-842.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c
> index 502edf0..923c4b6 100644
> --- a/drivers/crypto/nx/nx-842.c
> +++ b/drivers/crypto/nx/nx-842.c
> @@ -350,7 +350,7 @@ int nx842_compress(const unsigned char *in, unsigned int inlen,
>  	 * the alignment is guaranteed.
>  	*/
>  	inbuf = (unsigned long)in;
> -	if (!IS_ALIGNED(inbuf, PAGE_SIZE) || inlen != PAGE_SIZE)
> +	if (!PAGE_ALIGNED(inbuf) || inlen != PAGE_SIZE)
>  		return -EINVAL;
> 
>  	rcu_read_lock();
> @@ -545,7 +545,7 @@ int nx842_decompress(const unsigned char *in, unsigned int inlen,
> 
>  	/* Ensure page alignment and size */
>  	outbuf = (unsigned long)out;
> -	if (!IS_ALIGNED(outbuf, PAGE_SIZE) || *outlen != PAGE_SIZE)
> +	if (!PAGE_ALIGNED(outbuf) || *outlen != PAGE_SIZE)
>  		return -EINVAL;
> 
>  	rcu_read_lock();
> 

--
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