From: Samuel Ortiz Date: Mon, 7 May 2012 10:31:21 +0000 (+0200) Subject: NFC: Return the amount of LLCP bytes queued to sock_sendmsg X-Git-Tag: v3.5-rc1~101^2~6^2^2~104 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43472fffb4628773397297f7e365983accd4a0ef;p=karo-tx-linux.git NFC: Return the amount of LLCP bytes queued to sock_sendmsg Otherwise an LLCP send() always returns 0. Signed-off-by: Samuel Ortiz Signed-off-by: John W. Linville --- 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)