nilfs2: fix buffer head leak in nilfs_btnode_submit_block
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Thu, 15 Jul 2010 02:39:10 +0000 (11:39 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:15 +0000 (10:02 +0900)
nilfs_btnode_submit_block() refers to buffer head just before
returning from the function, but it releases the buffer head earlier
than that if nilfs_dat_translate() gets an error.

This has potential for oops in the erroneous case.  This fixes the
issue.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>

No differences found