Skip to content

Commit 07c0db7

Browse files
committed
Merge tag 'dlm-4.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm
Pull dlm fix from David Teigland: "This fixes a bug from the configfs cleanup" * tag 'dlm-4.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm: dlm: config: Fix ENOMEM failures in make_cluster()
2 parents 8b8c877 + 82c7d82 commit 07c0db7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/dlm/config.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,12 @@ static struct config_group *make_cluster(struct config_group *g,
343343
struct dlm_cluster *cl = NULL;
344344
struct dlm_spaces *sps = NULL;
345345
struct dlm_comms *cms = NULL;
346-
void *gps = NULL;
347346

348347
cl = kzalloc(sizeof(struct dlm_cluster), GFP_NOFS);
349348
sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS);
350349
cms = kzalloc(sizeof(struct dlm_comms), GFP_NOFS);
351350

352-
if (!cl || !gps || !sps || !cms)
351+
if (!cl || !sps || !cms)
353352
goto fail;
354353

355354
config_group_init_type_name(&cl->group, name, &cluster_type);

0 commit comments

Comments
 (0)