From: Thierry Escande Date: Fri, 12 Oct 2012 13:25:43 +0000 (+0200) Subject: NFC: Fix nfc_llcp_local chained list insertion X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16a78e9fed5e8baa8480ae3413f4328c4537c599;p=linux-beck.git NFC: Fix nfc_llcp_local chained list insertion list_add was called with swapped parameters Signed-off-by: Thierry Escande Signed-off-by: Samuel Ortiz --- 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; }