From: Dan Carpenter Date: Thu, 27 Nov 2014 15:58:54 +0000 (+0300) Subject: nfsd: minor off by one checks in __write_versions() X-Git-Tag: omap-for-v3.19/fixes-rc1~62^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818f2f57f20d0e9a9294180f304f34cd4e8f6066;p=pandora-kernel.git nfsd: minor off by one checks in __write_versions() My static checker complains that if "len == remaining" then it means we have truncated the last character off the version string. The intent of the code is that we print as many versions as we can without truncating a version. Then we put a newline at the end. If the newline can't fit we return -EINVAL. Signed-off-by: Dan Carpenter Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed