Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330230
b: refs/heads/master
c: 32418cf
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones authored and David S. Miller committed Oct 4, 2012
1 parent 6a9bcb2 commit f1b6cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 19d4e6639fdddce3c27bc91ef91bfe473313be20
refs/heads/master: 32418cfe495c95013be2e805c087db89dcefac6d
8 changes: 2 additions & 6 deletions trunk/net/nfc/llcp/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,11 @@ static int llcp_sock_connect(struct socket *sock, struct sockaddr *_addr,
pr_debug("sock %p sk %p flags 0x%x\n", sock, sk, flags);

if (!addr || len < sizeof(struct sockaddr_nfc) ||
addr->sa_family != AF_NFC) {
pr_err("Invalid socket\n");
addr->sa_family != AF_NFC)
return -EINVAL;
}

if (addr->service_name_len == 0 && addr->dsap == 0) {
pr_err("Missing service name or dsap\n");
if (addr->service_name_len == 0 && addr->dsap == 0)
return -EINVAL;
}

pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", addr->dev_idx,
addr->target_idx, addr->nfc_protocol);
Expand Down

0 comments on commit f1b6cd0

Please sign in to comment.