diff --git a/[refs] b/[refs] index 4e318aa4f373..2b3299288324 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 12e36b2f41b6cbc67386fcb9c59c32a3e2033905 +refs/heads/master: 7f14daa19ea36b200d237ad3ac5826ae25360461 diff --git a/trunk/fs/binfmt_elf.c b/trunk/fs/binfmt_elf.c index 06435f3665f4..561006127902 100644 --- a/trunk/fs/binfmt_elf.c +++ b/trunk/fs/binfmt_elf.c @@ -1152,7 +1152,7 @@ static int dump_write(struct file *file, const void *addr, int nr) static int dump_seek(struct file *file, loff_t off) { if (file->f_op->llseek && file->f_op->llseek != no_llseek) { - if (file->f_op->llseek(file, off, 1) != off) + if (file->f_op->llseek(file, off, SEEK_CUR) < 0) return 0; } else { char *buf = (char *)get_zeroed_page(GFP_KERNEL);