The patch titled binfmt_elf: plug a memory leak situation on dump_seek() has been removed from the -mm tree. Its filename was binfmt_elf-plug-a-memory-leak-situation-on-dump_seek.patch This patch was dropped because other changes were merged, which wrecked this patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: binfmt_elf: plug a memory leak situation on dump_seek() From: André Goddard Rosa <andre.goddard@xxxxxxxxx> -ENOCHANELOG Signed-off-by: André Goddard Rosa <andre.goddard@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/binfmt_elf.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff -puN fs/binfmt_elf.c~binfmt_elf-plug-a-memory-leak-situation-on-dump_seek fs/binfmt_elf.c --- a/fs/binfmt_elf.c~binfmt_elf-plug-a-memory-leak-situation-on-dump_seek +++ a/fs/binfmt_elf.c @@ -1096,6 +1096,8 @@ static int dump_write(struct file *file, static int dump_seek(struct file *file, loff_t off) { + int ret = 1; + if (file->f_op->llseek && file->f_op->llseek != no_llseek) { if (file->f_op->llseek(file, off, SEEK_CUR) < 0) return 0; @@ -1107,13 +1109,15 @@ static int dump_seek(struct file *file, unsigned long n = off; if (n > PAGE_SIZE) n = PAGE_SIZE; - if (!dump_write(file, buf, n)) - return 0; + if (!dump_write(file, buf, n)) { + ret = 0; + break; + } off -= n; } free_page((unsigned long)buf); } - return 1; + return ret; } /* _ Patches currently in -mm which might be from andre.goddard@xxxxxxxxx are linux-next.patch mqueue-fix-mq_open-file-descriptor-leak-on-user-space-processes.patch mqueue-remove-unneeded-info-messages-initialization.patch mqueue-apply-mathematics-distributivity-on-mq_bytes-calculation.patch mqueue-apply-mathematics-distributivity-on-mq_bytes-calculation-checkpatch-fixes.patch mqueue-simplify-do_open-error-handling.patch mqueue-only-set-error-codes-if-they-are-really-necessary.patch mqueue-fix-typo-failues-failures.patch lib-stringc-simplify-stricmp.patch lib-stringc-simplify-strnstr.patch binfmt_elf-plug-a-memory-leak-situation-on-dump_seek.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