All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 12/18] gcc-3.5: net/key/af_key.c
@ 2004-01-25 11:07 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2004-01-25 11:07 UTC (permalink / raw)
  To: davem; +Cc: netdev



net/key/af_key.c: In function `pfkey_create':
net/key/af_key.c:151: error: invalid lvalue in assignment



---

 25-akpm/net/key/af_key.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/key/af_key.c~gcc-35-net-key net/key/af_key.c
--- 25/net/key/af_key.c~gcc-35-net-key	Fri Jan 23 16:41:35 2004
+++ 25-akpm/net/key/af_key.c	Fri Jan 23 16:42:00 2004
@@ -148,7 +148,7 @@ static int pfkey_create(struct socket *s
 	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;

_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-25 11:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-25 11:07 [patch 12/18] gcc-3.5: net/key/af_key.c akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.