]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: clean up error handling in the MMP support
authorvikram.jadhav07 <vikramjadhavpucsd2007@gmail.com>
Sun, 13 Mar 2016 21:56:52 +0000 (17:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Mar 2016 21:56:52 +0000 (17:56 -0400)
commit419ecdfb418aaf571c8df7735ad794d50041a8d9
tree029ff2743a674d77d37e2c27d1c651b72fb4500e
parentf8975bf96b1991e20f4860640b34f1fb9a34c52c
ext4: clean up error handling in the MMP support

There is memory leak as both caller function kmmpd() and callee
read_mmp_block() not releasing bh_check  (i.e buffer_head).
Given patch fixes this problem.

[ Additional changes suggested by Andreas Dilger -- TYT ]

Signed-off-by: Jadhav Vikram <vikramjadhavpucsd2007@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mmp.c