mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	crypto: shash - Remove usage of CRYPTO_MINALIGN
The macro CRYPTO_MINALIGN is not meant to be used directly. This patch replaces it with crypto_tfm_ctx_alignment. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									5bdd5ded95
								
							
						
					
					
						commit
						18eb8ea6ee
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -37,7 +37,7 @@ static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key,
 | 
				
			||||||
	u8 *buffer, *alignbuffer;
 | 
						u8 *buffer, *alignbuffer;
 | 
				
			||||||
	int err;
 | 
						int err;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	absize = keylen + (alignmask & ~(CRYPTO_MINALIGN - 1));
 | 
						absize = keylen + (alignmask & ~(crypto_tfm_ctx_alignment() - 1));
 | 
				
			||||||
	buffer = kmalloc(absize, GFP_KERNEL);
 | 
						buffer = kmalloc(absize, GFP_KERNEL);
 | 
				
			||||||
	if (!buffer)
 | 
						if (!buffer)
 | 
				
			||||||
		return -ENOMEM;
 | 
							return -ENOMEM;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue