summaryrefslogtreecommitdiff
path: root/fs/afs/server_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/server_list.c')
-rw-r--r--fs/afs/server_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/server_list.c b/fs/afs/server_list.c
index 20d5474837df..b948df6dddc7 100644
--- a/fs/afs/server_list.c
+++ b/fs/afs/server_list.c
@@ -51,7 +51,7 @@ struct afs_server_list *afs_alloc_server_list(struct afs_volume *volume,
newrep++;
}
- slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL);
+ slist = kzalloc_flex(*slist, servers, nr_servers, GFP_KERNEL);
if (!slist)
goto error;