diff options
Diffstat (limited to 'fs/nfs/blocklayout/blocklayout.c')
-rw-r--r-- | fs/nfs/blocklayout/blocklayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index 04ac32b339f8..cbb1797149d5 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c | |||
@@ -1062,7 +1062,7 @@ nfs4_blk_get_deviceinfo(struct nfs_server *server, const struct nfs_fh *fh, | |||
1062 | return ERR_PTR(-ENOMEM); | 1062 | return ERR_PTR(-ENOMEM); |
1063 | } | 1063 | } |
1064 | 1064 | ||
1065 | pages = kzalloc(max_pages * sizeof(struct page *), GFP_NOFS); | 1065 | pages = kcalloc(max_pages, sizeof(struct page *), GFP_NOFS); |
1066 | if (pages == NULL) { | 1066 | if (pages == NULL) { |
1067 | kfree(dev); | 1067 | kfree(dev); |
1068 | return ERR_PTR(-ENOMEM); | 1068 | return ERR_PTR(-ENOMEM); |