The patch titled mincore: fill in results properly has been added to the -mm tree. Its filename is mincore-fill-in-results-properly.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: mincore: fill in results properly From: Nick Piggin <npiggin@xxxxxxx> Paper bag time. Thanks to Randy for noticing that I didn't actually assign 'present' to anything. Unfortunately my original patch passed the few simple test cases I gave it, purely by coincidence. Signed-off-by: Nick Piggin <npiggin@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mincore.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN mm/mincore.c~mincore-fill-in-results-properly mm/mincore.c --- a/mm/mincore.c~mincore-fill-in-results-properly +++ a/mm/mincore.c @@ -125,6 +125,8 @@ static long do_mincore(unsigned long add #endif } } + + vec[i] = present; } pte_unmap_unlock(ptep-1, ptl); @@ -135,6 +137,9 @@ none_mapped: pgoff = linear_page_index(vma, addr); for (i = 0; i < nr; i++, pgoff++) vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); + } else { + for (i = 0; i < nr; i++) + vec[i] = 0; } return nr; _ Patches currently in -mm which might be from npiggin@xxxxxxx are origin.patch mincore-config_swap=n-fix.patch mincore-fill-in-results-properly.patch mincore-vma-crossing-fix.patch git-block.patch mm-remove-gcc-workaround.patch fs-fix-__block_write_full_page-error-case-buffer-submission.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html