Commit eebd38a6 authored by Petr Vandrovec's avatar Petr Vandrovec Committed by Linus Torvalds

[PATCH] ipx uninitialized memory in 2.5.5-pre1

* ipx needs cleared ipx_sk, mainly intrfc pointer member.
  Fixes boottime oops.

			Petr Vandrovec
parent 0c7f4371
...@@ -1920,6 +1920,7 @@ static int ipx_create(struct socket *sock, int protocol) ...@@ -1920,6 +1920,7 @@ static int ipx_create(struct socket *sock, int protocol)
ipx = ipx_sk(sk) = kmalloc(sizeof(*ipx), GFP_KERNEL); ipx = ipx_sk(sk) = kmalloc(sizeof(*ipx), GFP_KERNEL);
if (!ipx) if (!ipx)
goto outsk; goto outsk;
memset(ipx, 0, sizeof(*ipx));
sock->ops = &ipx_dgram_ops; sock->ops = &ipx_dgram_ops;
break; break;
......
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