summaryrefslogtreecommitdiff
path: root/net/handshake/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/handshake/request.c')
-rw-r--r--net/handshake/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/handshake/request.c b/net/handshake/request.c
index 6b7e3e0bf399..2829adbeb149 100644
--- a/net/handshake/request.c
+++ b/net/handshake/request.c
@@ -119,7 +119,7 @@ struct handshake_req *handshake_req_alloc(const struct handshake_proto *proto,
if (!proto->hp_accept || !proto->hp_done)
return NULL;
- req = kzalloc(struct_size(req, hr_priv, proto->hp_privsize), flags);
+ req = kzalloc_flex(*req, hr_priv, proto->hp_privsize, flags);
if (!req)
return NULL;