commit | eeacfdc68a104967162dfcba60f53f6f5b62a334 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon May 20 09:29:42 2019 -0700 |
committer | Eric Biggers <ebiggers@google.com> | Tue May 28 10:27:52 2019 -0700 |
tree | 13a3375c24a8c9ab9fa14ec9e03560780e8e3e2a | |
parent | f47fcbb2b578bdb213d9ac5875aab56a2034d466 [diff] |
fscrypt: clean up some BUG_ON()s in block encryption/decryption Replace some BUG_ON()s with WARN_ON_ONCE() and returning an error code, and move the check for len divisible by FS_CRYPTO_BLOCK_SIZE into fscrypt_crypt_block() so that it's done for both encryption and decryption, not just encryption. Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com> Signed-off-by: Eric Biggers <ebiggers@google.com>