Skip to content
Commit c24f72cc authored by Joel Becker's avatar Joel Becker Committed by Mark Fasheh
Browse files

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: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent c3442e29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment