diff --git a/net/9p/client.c b/net/9p/client.c index e265a0ca6bdd..cb5cbb150dcd 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -977,7 +977,7 @@ struct p9_client *p9_client_create(const char *dev_name, char *options) struct p9_client *clnt; char *client_id; - clnt = kmalloc(sizeof(*clnt), GFP_KERNEL); + clnt = kzalloc(sizeof(*clnt), GFP_KERNEL); if (!clnt) return ERR_PTR(-ENOMEM);