ocfs2: call o2quo_exit() if malloc failed in o2net_init()
authorJoseph Qi <joseph.qi@huawei.com>
Thu, 9 Oct 2014 22:24:58 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:47 +0000 (22:25 -0400)
commit4a4e07c1bdbbc24d905e4c266b92cada9371db5d
tree50bbab4fdef17e08dd46bddbc67bee7c389dc9d6
parent7fa05c6e46d76378d4403669ba6ea38364f910ac
ocfs2: call o2quo_exit() if malloc failed in o2net_init()

In o2net_init, if malloc failed, it directly returns -ENOMEM.  Then
o2quo_exit won't be called in init_o2nm.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c