]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
nfc: fdp: fix NULL pointer dereference
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 20 Dec 2016 21:09:04 +0000 (21:09 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 22 Aug 2017 09:58:01 +0000 (06:58 -0300)
commit948e5e54b0b4840fe608da2dc671f61abf474022
treed9df014103b370f5e06272533c2744f85c1229d9
parentc21dfbf47a8317a871b74ed36f777b472c6c9e14
nfc: fdp: fix NULL pointer dereference

BugLink: http://bugs.launchpad.net/bugs/1710646
commit b6355fb3f5f40bbce165847d277e64896cab8f95 upstream.

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>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/nfc/fdp/i2c.c