diff --git a/fs/proc/base.c b/fs/proc/base.c index 04e29f929a118f917ef26e25934a3917f8e43edb..c4fcd6465f73bde88c883fa4bebb7df8dc2a74e1 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1961,7 +1961,7 @@ static struct task_struct *next_tgid(unsigned int tgid) return task; } -#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (1 /* /proc/self */)) +#define TGID_OFFSET (FIRST_PROCESS_ENTRY + (ARRAY_SIZE(proc_base_stuff) - 1)) static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldir, struct task_struct *task, int tgid)