]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: one function call less in user_cluster_connect() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 7 Apr 2015 23:43:52 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:52 +0000 (09:43 +1000)
commit2c12af6ab9066fd67b31c9e88e08678797ad3165
tree4ecc014ce035e9f1ee652e8d0b119e8a90812864
parent9a265c1d010a6a37c4a9187260a34036321843bb
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 <elfring@users.sourceforge.net>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/stack_user.c