Thread (59 messages) 59 messages, 3 authors, 2012-12-02

[ 47/54] NFC: Fix nfc_llcp_local chained list insertion

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2012-11-30 19:08:09
Also in: lkml

3.6-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Thierry Escande <redacted>

commit 16a78e9fed5e8baa8480ae3413f4328c4537c599 upstream.

list_add was called with swapped parameters

Signed-off-by: Thierry Escande <redacted>
Signed-off-by: Samuel Ortiz <redacted>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 net/nfc/llcp/llcp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -1190,7 +1190,7 @@ int nfc_llcp_register_device(struct nfc_
 	local->remote_miu = LLCP_DEFAULT_MIU;
 	local->remote_lto = LLCP_DEFAULT_LTO;
 
-	list_add(&llcp_devices, &local->list);
+	list_add(&local->list, &llcp_devices);
 
 	return 0;
 

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help