projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d108b
)
NFC: st-nci: initialize gate_count in st_nci_hci_network_init
author
Christophe Ricard
<christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:32 +0000
(22:54 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 26 Oct 2015 05:53:16 +0000
(06:53 +0100)
When initializing ndev->hci_dev->init_data, only gates field
was set. gate_count needs to be initialized as well.
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/se.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st-nci/se.c
b/drivers/nfc/st-nci/se.c
index
df2dc54
..
11e49a5
100644
(file)
--- a/
drivers/nfc/st-nci/se.c
+++ b/
drivers/nfc/st-nci/se.c
@@
-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));