]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: NCI: Fix NULL pointer dereference
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 6 Feb 2014 19:28:31 +0000 (11:28 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 23 Feb 2014 22:14:45 +0000 (23:14 +0100)
commit5abb9af338c34e1fc4b50667cf02710b70ee28b1
treefb077d602164143d84650b5f72e2b83b181b2baf
parent520797cd0f5ace941ce027c1bcb152180f8b768b
NFC: NCI: Fix NULL pointer dereference

The check should be for setup function pointer.

This patch fixes NULL pointer dereference issue for NCI
based NFC driver which doesn't define setup handler.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/core.c