mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +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];
|
node = g_groupinfo[index];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = -ENOENT;
|
return -ENOENT;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save the filename and file type */
|
/* Save the filename and file type */
|
||||||
|
|||||||
Reference in New Issue
Block a user