FAILED: patch "[PATCH] NFC: st-nci: initialize gate_count in st_nci_hci_network_init" failed to apply to 4.3-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 4.3-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
404b3e585b15d7431a0ffa5cf67090569fad88c1Mon Sep 17 00:00:00 2001
From: Christophe Ricard <[email protected]>
Date: Sun, 25 Oct 2015 22:54:32 +0100
Subject: [PATCH] NFC: st-nci: initialize gate_count in st_nci_hci_network_init
When initializing ndev->hci_dev->init_data, only gates field was set. gate_count needs to be initialized as well.
Signed-off-by Christophe Ricard <[email protected]>
Signed-off-by Samuel Ortiz <[email protected]>
drivers/nfc/st-nci/se.c +1 -0
@@ -536,6 +536,7 @@ static int st_nci_hci_network_init(struct nci_dev *ndev)if (!conn_info) goto free_dest_params; + ndev->hci_dev->init_data.gate_count =ARRAY_SIZE (st_nci_gates);memcpy (ndev->hci_dev->init_data.gates, st_nci_gates,sizeof (st_nci_gates));