From: Oleg Nesterov Date: Sat, 10 Feb 2007 09:46:38 +0000 (-0800) Subject: [PATCH] _proc_do_string(): fix short reads X-Git-Tag: v2.6.21-rc1~274^2~247 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d06087714b78e8921bd30b5c64202fe80c47339;p=pandora-kernel.git [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" Cc: Michael Tokarev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed