diff --git a/net/9p/client.c b/net/9p/client.c index e265a0ca6bdd..30e183b880d5 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -292,6 +292,7 @@ p9_tag_alloc(struct p9_client *c, int8_t type, uint t_size, uint r_size, if (!req) return ERR_PTR(-ENOMEM); + memset(req, 0, sizeof(req)); if (p9_fcall_init(c, &req->tc, alloc_tsize)) goto free_req; if (p9_fcall_init(c, &req->rc, alloc_rsize))