Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362382
b: refs/heads/master
c: d26d650
h: refs/heads/master
v: v3
  • Loading branch information
Mathias Krause authored and David S. Miller committed Apr 7, 2013
1 parent 5fe5239 commit c37869d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ce5efad47b62c57a4f5c54248347085a750ce0e
refs/heads/master: d26d6504f23e803824e8ebd14e52d4fc0a0b09cb
3 changes: 3 additions & 0 deletions trunk/net/nfc/llcp/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock,

pr_debug("%p %zu\n", sk, len);

msg->msg_namelen = 0;

lock_sock(sk);

if (sk->sk_state == LLCP_CLOSED &&
Expand Down Expand Up @@ -691,6 +693,7 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock,

pr_debug("Datagram socket %d %d\n", ui_cb->dsap, ui_cb->ssap);

memset(sockaddr, 0, sizeof(*sockaddr));
sockaddr->sa_family = AF_NFC;
sockaddr->nfc_protocol = NFC_PROTO_NFC_DEP;
sockaddr->dsap = ui_cb->dsap;
Expand Down

0 comments on commit c37869d

Please sign in to comment.