aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2009-09-18 13:05:42 -0700
committerAl Viro <[email protected]>2009-09-24 07:47:22 -0400
commit14be27460e4722d7135de3c46d043b4fc4382247 (patch)
treed7026e0e43c1f048f2a0f31a54beb93b91b5fb89 /lib/cpu-notifier-error-inject.c
parent94a8d5caba74211ec76dac80fc6e2d5c391530df (diff)
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. [[email protected]: simplification suggested by hpa] [[email protected]: fix count==0 handling] Signed-off-by: Steven Rostedt <[email protected]> Cc: Al Viro <[email protected]> Cc: Theodore Ts'o <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions