procfs: fs_procfsproc: Fix potential NULL pointer dereference of 'node'. From Juha Niskanen

This commit is contained in:
Gregory Nutt 2015-03-12 07:42:39 -06:00
parent 70e7dcba71
commit 6792cb3e34
1 changed files with 2 additions and 3 deletions

View File

@ -1343,9 +1343,8 @@ static int proc_readdir(struct fs_dirent_s *dir)
node = g_groupinfo[index];
break;
default:
ret = -ENOENT;
break;
default:
return -ENOENT;
}
/* Save the filename and file type */