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: firefly_0821_release~3680^2~2713^2~3^2~18^2~104 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43472fffb4628773397297f7e365983accd4a0ef;p=firefly-linux-kernel-4.4.55.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)