Commit 44a94103 authored by David S. Miller's avatar David S. Miller

[AX25]: Remove unused label from ax25_get_socket, add XXX comment.

parent a81aa950
......@@ -203,15 +203,15 @@ struct sock *ax25_get_socket(ax25_address *my_addr, ax25_address *dest_addr,
for (s = ax25_list; s != NULL; s = s->next) {
if (s->sk != NULL && ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->sk->type == type) {
sk = s->sk;
/* XXX Sleeps with spinlock held, use refcounts instead. XXX */
lock_sock(sk);
break;
}
}
out:
spin_unlock_bh(&ax25_list_lock);
return NULL;
return sk;
}
/*
......
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