Skip to content

Commit

Permalink
ext4 crypto: release crypto resource on module exit
Browse files Browse the repository at this point in the history
Crypto resource should be released when ext4 module exits, otherwise
it will cause memory leak.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Chao Yu authored and Theodore Ts'o committed May 31, 2015
1 parent abdd438 commit e298e73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -5645,6 +5645,7 @@ static int __init ext4_init_fs(void)

static void __exit ext4_exit_fs(void)
{
ext4_exit_crypto();
ext4_destroy_lazyinit_thread();
unregister_as_ext2();
unregister_as_ext3();
Expand Down

0 comments on commit e298e73

Please sign in to comment.