commit | 823ba01fc07751200c43e45733925a98b73eac3a | [log] [tgz] |
---|---|---|
author | Tao Ma <boyu.mt@taobao.com> | Mon Jul 11 18:26:01 2011 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Jul 11 18:26:01 2011 -0400 |
tree | c84853512445f6f56aeb0fcf8f9207222e9c80c0 | |
parent | 598dbdf2433cad55bd44d923f67a053871e3eabf [diff] |
ext4: fix a race which could leak memory in ext4_groupinfo_create_slab() In ext4_groupinfo_create_slab, we create ext4_groupinfo_caches within ext4_grpinfo_slab_create_mutex, but set it outside the lock, and there does exist some case that we may create it twice and causes a memory leak. So set it before we call mutex_unlock. Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>