summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-05-07 10:31:21 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2012-05-15 21:28:02 (GMT)
commit43472fffb4628773397297f7e365983accd4a0ef (patch)
tree878fdffb56405e2910f3f8ba681ffde48477112d /net/nfc
parent4260c13ba9102d466f017139de990dfffaf4d997 (diff)
downloadlinux-fsl-qoriq-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 11a3b7d..c4c100d 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)