fscrypt: don't clear flags on crypto transform
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:40 +0000 (15:51 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 May 2018 20:21:01 +0000 (16:21 -0400)
commit101c97a3e616f877a51201a4ff6ec2358b9a88d0
tree567c41694197d23a75e51e5f64d08f616a613f3b
parent1da2f0ac8ca57475e454e10180ee57a73b9566ec
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