-
- Downloads
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>
Showing
- fs/ocfs2/cluster/heartbeat.c 2 additions, 4 deletionsfs/ocfs2/cluster/heartbeat.c
- fs/ocfs2/cluster/heartbeat.h 1 addition, 1 deletionfs/ocfs2/cluster/heartbeat.h
- fs/ocfs2/cluster/tcp.c 2 additions, 11 deletionsfs/ocfs2/cluster/tcp.c
- fs/ocfs2/heartbeat.c 5 additions, 10 deletionsfs/ocfs2/heartbeat.c
Loading
Please register or sign in to comment