diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2009-08-21 14:32:48 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-08-24 00:58:23 -0400 |
commit | 6777d773a463ac045d333b989d4e44660f8d92ad (patch) | |
tree | 17291984d71515cec0a1970ecce3d631ed2f7981 /fs/exec.c | |
parent | 3edf2fb9d80a46d6c32ba12547a42419845b4b76 (diff) |
kernel_read: redefine offset type
vfs_read() offset is defined as loff_t, but kernel_read()
offset is only defined as unsigned long. Redefine
kernel_read() offset as loff_t.
Cc: stable@kernel.org
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -678,8 +678,8 @@ exit: | |||
678 | } | 678 | } |
679 | EXPORT_SYMBOL(open_exec); | 679 | EXPORT_SYMBOL(open_exec); |
680 | 680 | ||
681 | int kernel_read(struct file *file, unsigned long offset, | 681 | int kernel_read(struct file *file, loff_t offset, |
682 | char *addr, unsigned long count) | 682 | char *addr, unsigned long count) |
683 | { | 683 | { |
684 | mm_segment_t old_fs; | 684 | mm_segment_t old_fs; |
685 | loff_t pos = offset; | 685 | loff_t pos = offset; |