Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97632
b: refs/heads/master
c: 9ecad87
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jun 3, 2008
1 parent d455177 commit 0df63e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dccf1f4e1696c79bff064c3770867cc53cbc71c
refs/heads/master: 9ecad877948deb2871d29e03786a7d7911687009
12 changes: 7 additions & 5 deletions trunk/net/irda/af_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,11 +1093,6 @@ static int irda_create(struct net *net, struct socket *sock, int protocol)

init_waitqueue_head(&self->query_wait);

/* Initialise networking socket struct */
sock_init_data(sock, sk); /* Note : set sk->sk_refcnt to 1 */
sk->sk_family = PF_IRDA;
sk->sk_protocol = protocol;

switch (sock->type) {
case SOCK_STREAM:
sock->ops = &irda_stream_ops;
Expand All @@ -1124,13 +1119,20 @@ static int irda_create(struct net *net, struct socket *sock, int protocol)
self->max_sdu_size_rx = TTP_SAR_UNBOUND;
break;
default:
sk_free(sk);
return -ESOCKTNOSUPPORT;
}
break;
default:
sk_free(sk);
return -ESOCKTNOSUPPORT;
}

/* Initialise networking socket struct */
sock_init_data(sock, sk); /* Note : set sk->sk_refcnt to 1 */
sk->sk_family = PF_IRDA;
sk->sk_protocol = protocol;

/* Register as a client with IrLMP */
self->ckey = irlmp_register_client(0, NULL, NULL, NULL);
self->mask.word = 0xffff;
Expand Down

0 comments on commit 0df63e4

Please sign in to comment.