Skip to content

Commit

Permalink
NFC: Fix nfc_llcp_local chained list insertion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Escande authored and Samuel Ortiz committed Nov 19, 2012
1 parent 6521094 commit 16a78e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 16a78e9

Please sign in to comment.