From: Chuck Lever Date: Thu, 20 Dec 2007 19:54:27 +0000 (-0500) Subject: SUNRPC: Fix use of copy_to_user() in gss_pipe_upcall() X-Git-Tag: v2.6.25-rc1~1146^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7df089952fca41cb336733e1167c0a25e5a025d8;p=pandora-kernel.git SUNRPC: Fix use of copy_to_user() in gss_pipe_upcall() The gss_pipe_upcall() function expects the copy_to_user() function to return a negative error value if the call fails, but copy_to_user() returns an unsigned long number of bytes that couldn't be copied. Can rpc_pipefs actually retry a partially completed upcall read? If not, then gss_pipe_upcall() should punt any partial read, just like the upcall logic in net/sunrpc/cache.c. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed