ocfs2: one function call less in user_cluster_connect() after error detection
authorMarkus Elfring <[email protected]>
Tue, 14 Apr 2015 22:42:59 +0000 (15:42 -0700)
committerLinus Torvalds <[email protected]>
Tue, 14 Apr 2015 23:48:57 +0000 (16:48 -0700)
commit43ee9cad8a81954eea893b52e08d0c00ca9baccc
tree6209cc6ac2d8ba05e7079c9977434519c9495108
parentbb34ed21bce54a900c034089a6b1fde8c09f6a6d
ocfs2: one function call less in user_cluster_connect() after error detection

kfree() was called by user_cluster_connect() even if a previous call of
the kzalloc() function failed.

Return from this implementation directly after failure detection.

Signed-off-by: Markus Elfring <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/stack_user.c