Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbca692c authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Mark Fasheh
Browse files

[PATCH] Bogus NULL pointer check in fs/configfs/dir.c



We check the "group" pointer after we dereference it.  This check is
bogus, as it cannot be NULL coming in.

Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent a9e2ae39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -504,7 +504,7 @@ static int populate_groups(struct config_group *group)
	int ret = 0;
	int i;

	if (group && group->default_groups) {
	if (group->default_groups) {
		/* FYI, we're faking mkdir here
		 * I'm not sure we need this semaphore, as we're called
		 * from our parent's mkdir.  That holds our parent's