diff options
author | Theodore Ts'o <tytso@mit.edu> | 2015-05-31 13:34:24 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-05-31 13:34:24 -0400 |
commit | 95ea68b4c7105179f507d31f7bf571623373aa0b (patch) | |
tree | 5aead7a970083ed83e40f57c7a25323075de792e /fs/ext4/crypto_policy.c | |
parent | c936e1ec2879e43599d801dfa6fe58e7ccfee433 (diff) | |
download | lwn-95ea68b4c7105179f507d31f7bf571623373aa0b.tar.gz lwn-95ea68b4c7105179f507d31f7bf571623373aa0b.zip |
ext4 crypto: fix memory leaks in ext4_encrypted_zeroout
ext4_encrypted_zeroout() could end up leaking a bio and bounce page.
Fortunately it's not used much. While we're fixing things up,
refactor out common code into the static function alloc_bounce_page()
and fix up error handling if mempool_alloc() fails.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/crypto_policy.c')
0 files changed, 0 insertions, 0 deletions