]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: fix bh leak in nilfs_cpfile_delete_checkpoints function
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 30 May 2009 12:50:58 +0000 (21:50 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 30 May 2009 13:07:50 +0000 (22:07 +0900)
commit37b992470ebc642f397a41a0fee403fdeb72d6ae
tree61b8e9b9b0d8e57c0de0f4c87f23a671282bc862
parentf8d87df3763c6b8454a30ddd50ef6ce9f0982182
nilfs2: fix bh leak in nilfs_cpfile_delete_checkpoints function

The nilfs_cpfile_delete_checkpoints() wrongly skips brelse() for the
header block of checkpoint file in case of errors.  This fixes the
leak bug.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/cpfile.c