diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-20 18:57:02 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:22 -0500 |
commit | 7d9dea915fe333357912bce2d624ee848dfbd890 (patch) | |
tree | 885fe85b4439080e15cfaba67e6ab9e179244a05 /fs/nfs/pnfs.c | |
parent | 4601df20fb3bf2b87e248abc622b8a7e4c3059fb (diff) | |
download | linux-7d9dea915fe333357912bce2d624ee848dfbd890.tar.bz2 |
NFS: Use kcalloc() when allocating arrays
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 17149a490065..92927878c2f8 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -590,7 +590,7 @@ send_layoutget(struct pnfs_layout_hdr *lo, max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; max_pages = max_resp_sz >> PAGE_SHIFT; - pages = kzalloc(max_pages * sizeof(struct page *), gfp_flags); + pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); if (!pages) goto out_err_free; |