Commit 66726f3d authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[IPX]: Do not use lvalue in assignment.

parent c678a7b6
......@@ -1351,7 +1351,7 @@ static int ipx_create(struct socket *sock, int protocol)
rc = -ENOMEM;
if (!sk)
goto out;
ipx = ipx_sk(sk) = kmalloc(sizeof(*ipx), GFP_KERNEL);
ipx = sk->sk_protinfo = kmalloc(sizeof(*ipx), GFP_KERNEL);
if (!ipx)
goto outsk;
memset(ipx, 0, sizeof(*ipx));
......
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