]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f04e9abaad86c445f3639301d1f35e53516e5af
treefb7acd90ac82b9e7714d797ddccdca7550f9bd8d
parentc40b63c04950cd745a34a62bdf37894058201eab
dlm: config: Fix ENOMEM failures in make_cluster()

Commit a245b3bb74 "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