]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: NCI: Fix nci_register_device init sequence
authorVincent Cuissard <cuissard@marvell.com>
Tue, 22 Jul 2014 17:48:39 +0000 (19:48 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 1 Sep 2014 12:40:37 +0000 (14:40 +0200)
commitc1d1b14f916be44a20a0f1067c1f1e4e85fb2e2e
treebd2bf21f0a1d71635d7dd8ea17ad9ad7b7a75001
parentdde7c2269c4ede9beec8d5e05d6faaa23323f2d6
NFC: NCI: Fix nci_register_device init sequence

All contexts have to be initiliazed before calling
nfc_register_device otherwise it is possible to call
nci_dev_up before ending the nci_register_device
function. In such case kernel will crash on non
initialized variables.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/core.c