[IPX]: Memset newly allocated atalk private area.

parent 66cdcdf1
...@@ -1048,6 +1048,7 @@ static int atalk_create(struct socket *sock, int protocol) ...@@ -1048,6 +1048,7 @@ static int atalk_create(struct socket *sock, int protocol)
at = at_sk(sk) = kmalloc(sizeof(*at), GFP_KERNEL); at = at_sk(sk) = kmalloc(sizeof(*at), GFP_KERNEL);
if (!at) if (!at)
goto outsk; goto outsk;
memset(at, 0, sizeof(*at));
rc = 0; rc = 0;
sock->ops = &atalk_dgram_ops; sock->ops = &atalk_dgram_ops;
sock_init_data(sock, sk); sock_init_data(sock, sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment