mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
procfs: fs_procfsproc: Fix potential NULL pointer dereference of 'node'. From Juha Niskanen
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user