summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/crypto.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-02-05 19:19:01 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-22 16:07:23 -0800
commit66aa3e1274fcf887e9d6501a68163270fc7718e7 (patch)
tree16e1eceb2697c666961be51bf341dc55e3037367 /fs/f2fs/crypto.c
parent8ef2af45ae20f6348eeb3d0156f3eeddac2289e1 (diff)
downloadlinux-66aa3e1274fcf887e9d6501a68163270fc7718e7.tar.bz2
f2fs crypto: replace some BUG_ON()'s with error checks
This patch adopts: ext4 crypto: replace some BUG_ON()'s with error checks Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/crypto.c')
-rw-r--r--fs/f2fs/crypto.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/crypto.c b/fs/f2fs/crypto.c
index 4a62ef14e932..d879c6c846b7 100644
--- a/fs/f2fs/crypto.c
+++ b/fs/f2fs/crypto.c
@@ -362,7 +362,6 @@ static int f2fs_page_crypto(struct f2fs_crypto_ctx *ctx,
else
res = crypto_ablkcipher_encrypt(req);
if (res == -EINPROGRESS || res == -EBUSY) {
- BUG_ON(req->base.data != &ecr);
wait_for_completion(&ecr.completion);
res = ecr.res;
}