From fc1de6471c2ee0f8542406f51d5a8c12d9050c80 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Thu, 11 Oct 2012 14:36:52 -0400 Subject: [PATCH] --- yaml --- r: 334689 b: refs/heads/master c: 1813badd98ce02e4b96d8997b68ddef4d4ad4ec5 h: refs/heads/master i: 334687: 987ad3f0c0c5b4002ff1966c56c4a04d611171f4 v: v3 --- [refs] | 2 +- trunk/fs/nfs/nfs4filelayout.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c5f84c7bdc29..8db916a20637 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d527e5c15de8de813cd0a2ad0b769f68c6226938 +refs/heads/master: 1813badd98ce02e4b96d8997b68ddef4d4ad4ec5 diff --git a/trunk/fs/nfs/nfs4filelayout.c b/trunk/fs/nfs/nfs4filelayout.c index e7aee566861d..2e45fd9c02a3 100644 --- a/trunk/fs/nfs/nfs4filelayout.c +++ b/trunk/fs/nfs/nfs4filelayout.c @@ -750,7 +750,7 @@ filelayout_decode_layout(struct pnfs_layout_hdr *flo, goto out_err; if (fl->num_fh > 0) { - fl->fh_array = kzalloc(fl->num_fh * sizeof(struct nfs_fh *), + fl->fh_array = kcalloc(fl->num_fh, sizeof(fl->fh_array[0]), gfp_flags); if (!fl->fh_array) goto out_err;