summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-11-27 16:58:54 +0100
committerJ. Bruce Fields <bfields@redhat.com>2014-12-01 20:45:28 +0100
commit818f2f57f20d0e9a9294180f304f34cd4e8f6066 (patch)
treeba82e5a7af67db82e583a8d36176c3f3e3e105ab /fs/btrfs
parentsunrpc: release svc_pool_map reference when serv allocation fails (diff)
downloadlinux-818f2f57f20d0e9a9294180f304f34cd4e8f6066.tar.xz
linux-818f2f57f20d0e9a9294180f304f34cd4e8f6066.zip
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 <dan.carpenter@oracle.com> Reviewed-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions