diff --git a/[refs] b/[refs] index 00112931d667..877d8f5725af 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c6b6ef8bb05af632889c5536513b9f4004961f73 +refs/heads/master: 4fd2c20d964a8fb9861045f1022475c9d200d684 diff --git a/trunk/fs/proc/kcore.c b/trunk/fs/proc/kcore.c index a44a7897fd4d..b442dac8f5f9 100644 --- a/trunk/fs/proc/kcore.c +++ b/trunk/fs/proc/kcore.c @@ -490,7 +490,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) } read_unlock(&kclist_lock); - if (m == NULL) { + if (&m->list == &kclist_head) { if (clear_user(buffer, tsz)) return -EFAULT; } else if (is_vmalloc_or_module_addr((void *)start)) {