diff options
author | Thierry Escande <thierry.escande@linux.intel.com> | 2012-10-12 15:25:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 11:38:14 -0800 |
commit | 1a46298f9da553d85dbbe39022d2b142b2cd86f0 (patch) | |
tree | 64d02d28ba8d278271bd2501492e57c6592ef3dc | |
parent | 014703df1078581921afd20edc03b7baec936ad3 (diff) | |
download | lwn-1a46298f9da553d85dbbe39022d2b142b2cd86f0.tar.gz lwn-1a46298f9da553d85dbbe39022d2b142b2cd86f0.zip |
NFC: Fix nfc_llcp_local chained list insertion
commit 16a78e9fed5e8baa8480ae3413f4328c4537c599 upstream.
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>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/nfc/llcp/llcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 7dd983a41688..83a3592f9f7c 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c @@ -1190,7 +1190,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; |