From: Bryan Schumaker Date: Fri, 7 Dec 2012 21:17:29 +0000 (-0500) Subject: NFSD: Correct the size calculation in fault_inject_write X-Git-Tag: v3.8-rc1~20^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d9a2ca2ea1aa963a077fb49e7efcc3b0237a9b;p=pandora-kernel.git NFSD: Correct the size calculation in fault_inject_write If len == 0 we end up with size = (0 - 1), which could cause bad things to happen in copy_from_user(). Signed-off-by: Bryan Schumaker Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed