]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ocfs2: Proper cleanup in case of error in ocfs2_register_hb_callbacks()
authorJoel Becker <joel.becker@oracle.com>
Sat, 3 Feb 2007 11:14:30 +0000 (03:14 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 14 Mar 2007 21:37:09 +0000 (14:37 -0700)
commitc24f72cc7ca829bbad0532ddf315ace3ae1c359e
treef52e199ba3e426d0713be8d401a1c53336f47b8b
parentc3442e296517aee733d62fc3fe03211598902c7d
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 <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/cluster/heartbeat.h
fs/ocfs2/cluster/tcp.c
fs/ocfs2/heartbeat.c