diff options
Diffstat (limited to 'fs/nfsd/export.c')
| -rw-r--r-- | fs/nfsd/export.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 8ceb25a10ea0..a1143f7c2201 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -404,8 +404,9 @@ fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc)  	if (fsloc->locations_count == 0)  		return 0; -	fsloc->locations = kzalloc(fsloc->locations_count -			* sizeof(struct nfsd4_fs_location), GFP_KERNEL); +	fsloc->locations = kcalloc(fsloc->locations_count, +				   sizeof(struct nfsd4_fs_location), +				   GFP_KERNEL);  	if (!fsloc->locations)  		return -ENOMEM;  	for (i=0; i < fsloc->locations_count; i++) {  |