From: Joel Becker Date: Sat, 3 Feb 2007 11:14:30 +0000 (-0800) Subject: ocfs2: Proper cleanup in case of error in ocfs2_register_hb_callbacks() X-Git-Tag: v2.6.21-rc4~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24f72cc7ca829bbad0532ddf315ace3ae1c359e;p=pandora-kernel.git ocfs2: Proper cleanup in case of error in ocfs2_register_hb_callbacks() If ocfs2_register_hb_callbacks() succeeds on its first callback but fails its second, it doesn't release the first on the way out. Fix that. While we're at it, o2hb_unregister_callback() never returns anything but 0, so let's make it void. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed