From: Ryusuke Konishi Date: Thu, 15 Jul 2010 02:39:10 +0000 (+0900) Subject: nilfs2: fix buffer head leak in nilfs_btnode_submit_block X-Git-Tag: v2.6.36-rc1~500^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e6cc013b896d75d6ce4ec9e168014af1257fd8;p=pandora-kernel.git nilfs2: fix buffer head leak in nilfs_btnode_submit_block 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 --- Reading git-diff-tree failed