summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorSteven Rostedt2009-09-18 22:05:42 +0200
committerAl Viro2009-09-24 13:47:22 +0200
commit14be27460e4722d7135de3c46d043b4fc4382247 (patch)
treed7026e0e43c1f048f2a0f31a54beb93b91b5fb89 /fs/inode.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus (diff)
downloadkernel-qcow2-linux-14be27460e4722d7135de3c46d043b4fc4382247.tar.gz
kernel-qcow2-linux-14be27460e4722d7135de3c46d043b4fc4382247.tar.xz
kernel-qcow2-linux-14be27460e4722d7135de3c46d043b4fc4382247.zip
libfs: make simple_read_from_buffer conventional
Impact: have simple_read_from_buffer conform to standards It was brought to my attention by Andrew Morton, Theodore Tso, and H. Peter Anvin that a read from userspace should only return -EFAULT if nothing was actually read. Looking at the simple_read_from_buffer I noticed that this function does not conform to that rule. This patch fixes that function. [akpm@linux-foundation.org: simplification suggested by hpa] [hpa@zytor.com: fix count==0 handling] Signed-off-by: Steven Rostedt <srostedt@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Theodore Ts'o <tytso@mit.edu> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions