summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-05-07 14:31:21 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-05-16 01:28:02 +0400
commit43472fffb4628773397297f7e365983accd4a0ef (patch)
tree878fdffb56405e2910f3f8ba681ffde48477112d /net/nfc
parent4260c13ba9102d466f017139de990dfffaf4d997 (diff)
downloadlinux-43472fffb4628773397297f7e365983accd4a0ef.tar.xz
NFC: Return the amount of LLCP bytes queued to sock_sendmsg
Otherwise an LLCP send() always returns 0. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/llcp/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/commands.c b/net/nfc/llcp/commands.c
index 11a3b7d98dc5..c4c100dc52ee 100644
--- a/net/nfc/llcp/commands.c
+++ b/net/nfc/llcp/commands.c
@@ -502,7 +502,7 @@ int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
kfree(msg_data);
- return 0;
+ return len;
}
int nfc_llcp_send_rr(struct nfc_llcp_sock *sock)