diff options
author | Dave Jones <davej@redhat.com> | 2012-10-04 09:51:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-04 15:58:47 -0400 |
commit | 32418cfe495c95013be2e805c087db89dcefac6d (patch) | |
tree | da22a27485f29d6cd87ac8b063006715104981e0 | |
parent | 19d4e6639fdddce3c27bc91ef91bfe473313be20 (diff) | |
download | lwn-32418cfe495c95013be2e805c087db89dcefac6d.tar.gz lwn-32418cfe495c95013be2e805c087db89dcefac6d.zip |
Remove noisy printks from llcp_sock_connect
Validation of userspace input shouldn't trigger dmesg spamming.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/nfc/llcp/sock.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/nfc/llcp/sock.c b/net/nfc/llcp/sock.c index 40f056debf9a..63e4cdc92376 100644 --- a/net/nfc/llcp/sock.c +++ b/net/nfc/llcp/sock.c @@ -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); |