]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st21nfcb: Fix "NULL pointer dereference" possible error
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Jan 2015 22:33:29 +0000 (23:33 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Jan 2015 22:14:34 +0000 (23:14 +0100)
commit7f7758e8b3919973c7e3288c7c3d33ad204fa01a
tree9ff398eb60545644a165764116597ded5a4fffb4
parent16d64925a96854189196a4d90c93e1b4763a53ca
NFC: st21nfcb: Fix "NULL pointer dereference" possible error

When the platform with CONFIG_ST21NFCB_I2C=y without any st21nfcb component
physically connected a:
"Unable to handle kernel NULL pointer dereference at virtual address" may
show up at driver initialization phase.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfcb/i2c.c