]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ipx uninitialized memory in 2.5.5-pre1
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Tue, 19 Feb 2002 05:52:28 +0000 (21:52 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 19 Feb 2002 05:52:28 +0000 (21:52 -0800)
* ipx needs cleared ipx_sk, mainly intrfc pointer member.
  Fixes boottime oops.

Petr Vandrovec

net/ipx/af_ipx.c

index ac2ea36361b4f309bf3511a64e21112712d3e8ae..7f0106d399354d2d2704ab5deb94bf71a8c09d58 100644 (file)
@@ -1920,6 +1920,7 @@ static int ipx_create(struct socket *sock, int protocol)
                        ipx = ipx_sk(sk) = kmalloc(sizeof(*ipx), GFP_KERNEL);
                        if (!ipx)
                                goto outsk;
+                       memset(ipx, 0, sizeof(*ipx));
                         sock->ops = &ipx_dgram_ops;
                         break;