OSDN Git Service

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 19:18:52 +0000 (12:18 -0700)
commit52c51f7b7bde658d8e5abb50729dae361d0e8e35
tree893b0f2bb4cf37206bff0d395d029e2d73c09ec2
parent89b7fb82982fbe9a0951fde557a23cdf99b8cdbd
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