dlm: config: Fix ENOMEM failures in make_cluster()
authorAndrew Price <anprice@redhat.com>
Tue, 22 Mar 2016 17:36:34 +0000 (17:36 +0000)
committerDavid Teigland <teigland@redhat.com>
Tue, 29 Mar 2016 15:28:08 +0000 (10:28 -0500)
commit82c7d823cc31cf56d964eebe1f91aaf1691cddce
treefb7acd90ac82b9e7714d797ddccdca7550f9bd8d
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
dlm: config: Fix ENOMEM failures in make_cluster()

Commit 1ae1602de0 "configfs: switch ->default groups to a linked list"
left the NULL gps pointer behind after removing the kcalloc() call which
made it non-NULL. It also left the !gps check in place so make_cluster()
now fails with ENOMEM. Remove the remaining uses of the gps variable to
fix that.

Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/config.c