aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 62175cbcc801..8adcc5eaa175 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -885,23 +885,6 @@ struct file *open_exec(const char *name)
885} 885}
886EXPORT_SYMBOL(open_exec); 886EXPORT_SYMBOL(open_exec);
887 887
888int kernel_read(struct file *file, loff_t offset,
889 char *addr, unsigned long count)
890{
891 mm_segment_t old_fs;
892 loff_t pos = offset;
893 int result;
894
895 old_fs = get_fs();
896 set_fs(get_ds());
897 /* The cast to a user pointer is valid due to the set_fs() */
898 result = vfs_read(file, (void __user *)addr, count, &pos);
899 set_fs(old_fs);
900 return result;
901}
902
903EXPORT_SYMBOL(kernel_read);
904
905int kernel_read_file(struct file *file, void **buf, loff_t *size, 888int kernel_read_file(struct file *file, void **buf, loff_t *size,
906 loff_t max_size, enum kernel_read_file_id id) 889 loff_t max_size, enum kernel_read_file_id id)
907{ 890{