]> 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)
commit6b66af9c52cba410d2adf02beef8a388e9fb10e8
treefb7acd90ac82b9e7714d797ddccdca7550f9bd8d
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
dlm: config: Fix ENOMEM failures in make_cluster()

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