fscrypt: don't clear flags on crypto transform
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:40 +0000 (15:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 16:37:40 +0000 (09:37 -0700)
commit49ddcfcdd73a51ac78f0bf0100a7329c6e4d05ef
tree774a04ce4cefac7ff8723e1b0fe4dc65cfaeae1a
parentff8225b62ca09c65b2dd1d8f5d7eb03bf3797d4f
fscrypt: don't clear flags on crypto transform

fscrypt is clearing the flags on the crypto_skcipher it allocates for
each inode.  But, this is unnecessary and may cause problems in the
future because it will even clear flags that are meant to be internal to
the crypto API, e.g. CRYPTO_TFM_NEED_KEY.

Remove the unnecessary flag clearing.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/keyinfo.c