procfs: fs_procfsproc: Fix potential NULL pointer dereference of 'node'. From Juha Niskanen
This commit is contained in:
parent
70e7dcba71
commit
6792cb3e34
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue