tpm/tpm_i2c_stm_st33: Fix coccinelle warnings. Possible NULL pointer dereference
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 2 Dec 2014 20:06:03 +0000 (21:06 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Sat, 17 Jan 2015 13:00:09 +0000 (14:00 +0100)
commit67fe94175a3e2da2bb0897f644ed856b8528c633
tree135c0c94d476dd362a35e453b13ebba3e6a8cb73
parentf2f083b5d478d409e6658392088e7e594f748c04
tpm/tpm_i2c_stm_st33: Fix coccinelle warnings. Possible NULL pointer dereference

If !client the kernel mays oops in dev_info when doing client->dev.

Reported-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_stm_st33.c