nfc: fdp: fix NULL pointer dereference
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 20 Dec 2016 21:09:04 +0000 (21:09 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 1 Apr 2017 22:36:12 +0000 (00:36 +0200)
commitb6355fb3f5f40bbce165847d277e64896cab8f95
tree6cc32a24790fb4f29418cd83a2e1f11702b6485a
parentce69b95ca4e459f54b5afad717d2129d3ba1ff6e
nfc: fdp: fix NULL pointer dereference

We are checking phy after dereferencing it. We can print the debug
information after checking it. If phy is NULL then we will get a good
stack trace to tell us that we are in this irq handler.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/fdp/i2c.c