diff options
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 06435f3665f4..561006127902 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1152,7 +1152,7 @@ static int dump_write(struct file *file, const void *addr, int nr) | |||
1152 | static int dump_seek(struct file *file, loff_t off) | 1152 | static int dump_seek(struct file *file, loff_t off) |
1153 | { | 1153 | { |
1154 | if (file->f_op->llseek && file->f_op->llseek != no_llseek) { | 1154 | if (file->f_op->llseek && file->f_op->llseek != no_llseek) { |
1155 | if (file->f_op->llseek(file, off, 1) != off) | 1155 | if (file->f_op->llseek(file, off, SEEK_CUR) < 0) |
1156 | return 0; | 1156 | return 0; |
1157 | } else { | 1157 | } else { |
1158 | char *buf = (char *)get_zeroed_page(GFP_KERNEL); | 1158 | char *buf = (char *)get_zeroed_page(GFP_KERNEL); |