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)
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>

No differences found