NFC: nci: fix possible crash in nci_core_conn_create
authorRobert Dolca <robert.dolca@intel.com>
Thu, 22 Oct 2015 09:11:40 +0000 (12:11 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 Oct 2015 19:29:05 +0000 (20:29 +0100)
commitcaa575a86ec1f177730cafa089d69ab4e424860c
tree1470623ae3570e1464697599c8bc8471c0c7f815
parent22e4bd09c401905671f3787a8392d269a0ebfa0d
NFC: nci: fix possible crash in nci_core_conn_create

If the number of destination speific parameters supplied is 0
the call will fail. If the first destination specific parameter
does not have a value, curr_id will be set to 0.

Signed-off-by: Robert Dolca <robert.dolca@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/core.c