]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix possible memory leak in ext4_remount()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 2 Mar 2013 22:13:55 +0000 (17:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Mar 2013 22:13:55 +0000 (17:13 -0500)
commit6e6ba611f8543e4068cac9b9df9e58914faeda36
treec07bece14821d3b66c781b969c4ec0ed5ee37a26
parent87d644ec5d4a5cd2570a775ced53fcb6123265de
ext4: fix possible memory leak in ext4_remount()

'orig_data' is malloced in ext4_remount() and should be freed
before leaving from the error handling cases, otherwise it will
cause memory leak.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Cc: stable@vger.kernel.org
fs/ext4/super.c