Patchwork [3.5.y.z,extended,stable] Patch "NFC: Fix nfc_llcp_local chained list insertion" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Dec. 13, 2012, 4:45 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/205723/
State New
Headers show


Herton Ronaldo Krzesinski - Dec. 13, 2012, 4:45 a.m.
This is a note to let you know that I have just added a patch titled

    NFC: Fix nfc_llcp_local chained list insertion

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From fbc1ee55657fa830e7a4745578bebe7994d3a01a Mon Sep 17 00:00:00 2001
From: Thierry Escande <>
Date: Fri, 12 Oct 2012 15:25:43 +0200
Subject: [PATCH 04/20] NFC: Fix nfc_llcp_local chained list insertion

commit 16a78e9fed5e8baa8480ae3413f4328c4537c599 upstream.

list_add was called with swapped parameters

Signed-off-by: Thierry Escande <>
Signed-off-by: Samuel Ortiz <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 net/nfc/llcp/llcp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index 42994fa..96781f5 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -990,7 +990,7 @@  int nfc_llcp_register_device(struct nfc_dev *ndev)
 	local->remote_lto = LLCP_DEFAULT_LTO;
 	local->remote_rw = LLCP_DEFAULT_RW;

-	list_add(&llcp_devices, &local->list);
+	list_add(&local->list, &llcp_devices);

 	return 0;