From: Chuck Lever Date: Thu, 1 Nov 2007 20:57:25 +0000 (-0400) Subject: NFSD: Path name length signage in nfsd request argument structures X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~21026^2~87 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=48b4ba3fdd7af319e90ade395162430934ee7b87;p=mirror_ubuntu-zesty-kernel.git NFSD: Path name length signage in nfsd request argument structures Clean up: For consistency, store the length of path name strings in nfsd argument structures as unsigned integers. Signed-off-by: Chuck Lever Acked-By: NeilBrown Signed-off-by: J. Bruce Fields --- diff --git a/include/linux/nfsd/xdr.h b/include/linux/nfsd/xdr.h index 49ddf7903b92..a0132ef58f21 100644 --- a/include/linux/nfsd/xdr.h +++ b/include/linux/nfsd/xdr.h @@ -73,7 +73,7 @@ struct nfsd_symlinkargs { char * fname; unsigned int flen; char * tname; - int tlen; + unsigned int tlen; struct iattr attrs; }; diff --git a/include/linux/nfsd/xdr3.h b/include/linux/nfsd/xdr3.h index 6fdb958043f0..421eddd65a25 100644 --- a/include/linux/nfsd/xdr3.h +++ b/include/linux/nfsd/xdr3.h @@ -89,7 +89,7 @@ struct nfsd3_symlinkargs { char * fname; unsigned int flen; char * tname; - int tlen; + unsigned int tlen; struct iattr attrs; };