netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 14/18] gcc-3.5: pppoe
@ 2004-01-25 11:08 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2004-01-25 11:08 UTC (permalink / raw)
  To: davem; +Cc: netdev



drivers/net/pppoe.c: In function `pppoe_create':
drivers/net/pppoe.c:519: error: invalid lvalue in assignment                    


---

 drivers/net/pppoe.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/pppoe.c~gcc-35-pppoe drivers/net/pppoe.c
--- 25/drivers/net/pppoe.c~gcc-35-pppoe	2004-01-25 03:01:42.000000000 -0800
+++ 25-akpm/drivers/net/pppoe.c	2004-01-25 03:01:42.000000000 -0800
@@ -517,7 +517,7 @@ static int pppoe_create(struct socket *s
 	sk->sk_protocol	   = PX_PROTO_OE;
 	sk->sk_destruct	   = pppoe_sk_free;
 
-	po = pppox_sk(sk) = kmalloc(sizeof(*po), GFP_KERNEL);
+	po = sk->sk_protinfo = kmalloc(sizeof(*po), GFP_KERNEL);
 	if (!po)
 		goto frees;
 	memset(po, 0, sizeof(*po));

_

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

only message in thread, other threads:[~2004-01-25 11:08 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:08 [patch 14/18] gcc-3.5: pppoe akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).