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)
commit3c1c0f5dc80bbde5baef2403cc6a0d33c9824d2d
treebd2bf21f0a1d71635d7dd8ea17ad9ad7b7a75001
parentcfdbeeafdbbdbc006f700e92cbad2cb5d4529f3d
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