Skip to content
Snippets Groups Projects
Commit 95ea68b4 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatarTheodore Ts'o <tytso@mit.edu>
parent c936e1ec
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment