git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'afs-next-20190628' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowel...
[sfrench/cifs-2.6.git]
/
fs
/
afs
/
write.c
diff --git
a/fs/afs/write.c
b/fs/afs/write.c
index 98eb7adbce91198268a5fcf6f67a20021309442c..cb76566763dbafc5e6b531d4476ed46f76e60070 100644
(file)
--- a/
fs/afs/write.c
+++ b/
fs/afs/write.c
@@
-44,8
+44,7
@@
static int afs_fill_page(struct afs_vnode *vnode, struct key *key,
return 0;
}
- req = kzalloc(sizeof(struct afs_read) + sizeof(struct page *),
- GFP_KERNEL);
+ req = kzalloc(struct_size(req, array, 1), GFP_KERNEL);
if (!req)
return -ENOMEM;