9
0
Fork 0

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 4b160ee945
commit e1d1dcb4bb
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 */