Skip to contentSkip to conversation

gcc-3.5: netrom

PATCH In review [email protected] 1 participant 1 message Jan 25, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 13/18 gcc-3.5: netrom

net/netrom/af_netrom.c: In function `nr_alloc_sock':
net/netrom/af_netrom.c:75: error: invalid lvalue in assignment

---

 25-akpm/net/netrom/af_netrom.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
net/netrom/af_netrom.c renamed from net/netrom/af_netrom.c~gcc-35-netrom +1 -1
diff -puN net/netrom/af_netrom.c~gcc-35-netrom net/netrom/af_netrom.c
@@ -72,7 +72,7 @@ static struct sock *nr_alloc_sock(void)
 	if (!sk)
 		goto out;
 
-	nr = nr_sk(sk) = kmalloc(sizeof(*nr), GFP_ATOMIC);
+	nr = sk->sk_protinfo = kmalloc(sizeof(*nr), GFP_ATOMIC);
 	if (!nr)
 		goto frees;
 

_