Commit 6c113729 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: net/atm/common.c

net/atm/common.c: In function `vcc_create':
net/atm/common.c:151: error: invalid lvalue in assignment
parent 714b5c04
...@@ -148,7 +148,7 @@ int vcc_create(struct socket *sock, int protocol, int family) ...@@ -148,7 +148,7 @@ int vcc_create(struct socket *sock, int protocol, int family)
sk->sk_state_change = vcc_def_wakeup; sk->sk_state_change = vcc_def_wakeup;
sk->sk_write_space = vcc_write_space; sk->sk_write_space = vcc_write_space;
vcc = atm_sk(sk) = kmalloc(sizeof(*vcc), GFP_KERNEL); vcc = sk->sk_protinfo = kmalloc(sizeof(*vcc), GFP_KERNEL);
if (!vcc) { if (!vcc) {
sk_free(sk); sk_free(sk);
return -ENOMEM; return -ENOMEM;
......
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