From: Tao Ma Date: Mon, 11 Jul 2011 22:26:01 +0000 (-0400) Subject: ext4: fix a race which could leak memory in ext4_groupinfo_create_slab() X-Git-Tag: v3.1-rc1~90^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=823ba01fc07751200c43e45733925a98b73eac3a;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed