Skip to content
Browse files

NFC: Fix nfc_llcp_local chained list insertion

commit 16a78e9 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>
  • Loading branch information...
1 parent 014703d commit 1a46298f9da553d85dbbe39022d2b142b2cd86f0 Thierry Escande committed with gregkh Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 net/nfc/llcp/llcp.c
View
2 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;

0 comments on commit 1a46298

Please sign in to comment.
Something went wrong with that request. Please try again.