From: Frederik Deweerdt Date: Fri, 29 Sep 2006 09:01:02 +0000 (-0700) Subject: [PATCH] fix mem_write() return value X-Git-Tag: v2.6.19-rc1~710 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7ca54f486d3b07f48b8bbc92705bde6ba98ee54;p=pandora-kernel.git [PATCH] fix mem_write() return value At the beginning of the routine, "copied" is set to 0, but it is no good because in lines 805 and 812 it is set to other values. Finally, the routine returns as if it copied 12 (=ENOMEM) bytes less than it actually did. Signed-off-by: Frederik Deweerdt Acked-by: Eric Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed