]> 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)
commit11bc375585bf145d374c3c4b6663d4b6a02ddedb
tree9ff398eb60545644a165764116597ded5a4fffb4
parentf0d85e17b28cc0f7edf507a2ad8f6b90c06a0a34
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