summaryrefslogtreecommitdiff
path: root/net/nfc/llcp/llcp.c
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linux.intel.com>2012-10-12 15:25:43 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-20 00:09:25 +0100
commit16a78e9fed5e8baa8480ae3413f4328c4537c599 (patch)
tree6122e029625087f1ce7a04aa63f275b296d26a20 /net/nfc/llcp/llcp.c
parent65210946f31007d12efcf66586fdcaf6ff3fa8f9 (diff)
NFC: Fix nfc_llcp_local chained list insertion
list_add was called with swapped parameters Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/llcp/llcp.c')
-rw-r--r--net/nfc/llcp/llcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index cc10d073c338..9e8f4b2801f6 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -1210,7 +1210,7 @@ int nfc_llcp_register_device(struct nfc_dev *ndev)
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;
}