diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-20 09:29:42 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-05-28 10:27:52 -0700 |
commit | eeacfdc68a104967162dfcba60f53f6f5b62a334 (patch) | |
tree | 13a3375c24a8c9ab9fa14ec9e03560780e8e3e2a /block/partitions/aix.c | |
parent | f47fcbb2b578bdb213d9ac5875aab56a2034d466 (diff) | |
download | linux-eeacfdc68a104967162dfcba60f53f6f5b62a334.tar.bz2 |
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>
Diffstat (limited to 'block/partitions/aix.c')
0 files changed, 0 insertions, 0 deletions