Commit 8f917da5 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[AF_KEY]: Do not use lvalue in assignment.

parent 51bb5f58
......@@ -148,7 +148,7 @@ static int pfkey_create(struct socket *sock, int protocol)
sk_set_owner(sk, THIS_MODULE);
err = -ENOMEM;
pfk = pfkey_sk(sk) = kmalloc(sizeof(*pfk), GFP_KERNEL);
pfk = sk->sk_protinfo = kmalloc(sizeof(*pfk), GFP_KERNEL);
if (!pfk) {
sk_free(sk);
goto out;
......
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