projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'vfio-ccw-20180529' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms39...
[linux-2.6-microblaze.git]
/
fs
/
afs
/
addr_list.c
diff --git
a/fs/afs/addr_list.c
b/fs/afs/addr_list.c
index
7587fb6
..
2c46c46
100644
(file)
--- a/
fs/afs/addr_list.c
+++ b/
fs/afs/addr_list.c
@@
-43,8
+43,7
@@
struct afs_addr_list *afs_alloc_addrlist(unsigned int nr,
_enter("%u,%u,%u", nr, service, port);
- alist = kzalloc(sizeof(*alist) + sizeof(alist->addrs[0]) * nr,
- GFP_KERNEL);
+ alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL);
if (!alist)
return NULL;