aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2007-02-10 01:46:38 -0800
committerLinus Torvalds <[email protected]>2007-02-11 11:18:07 -0800
commit8d06087714b78e8921bd30b5c64202fe80c47339 (patch)
treefc55cbbf9fcdd2f9bed838b073f7828a1e78f636 /include/linux/debugobjects.h
parentc75fb88dbcc470e6041a20b1457b4835b9a0a48a (diff)
[PATCH] _proc_do_string(): fix short reads
If you try to read things like /proc/sys/kernel/osrelease with single-byte reads, you get just one byte and then EOF. This is because _proc_do_string() assumes that the caller is read()ing into a buffer which is large enough to fit the whole string in a single hit. Fix. Cc: "Eric W. Biederman" <[email protected]> Cc: Michael Tokarev <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions