fscrypt: Never allocate fscrypt_ctx on in-place encryption
authorDavid Gstir <david@sigma-star.at>
Tue, 6 Dec 2016 22:53:54 +0000 (23:53 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2016 21:26:11 +0000 (16:26 -0500)
commit9e532772b4e36888584efc7a9531143bd43355b3
treee4e9e4f064c79751cfcd8cb820e985474ff81109
parente550c16c8aab95c7996b0c864d5fcedc2c430a43
fscrypt: Never allocate fscrypt_ctx on in-place encryption

In case of in-place encryption fscrypt_ctx was allocated but never
released. Since we don't need it for in-place encryption, we skip
allocating it.

Fixes: 1c7dcf69eea3 ("fscrypt: Add in-place encryption mode")

Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/crypto.c