Tag: 67fe94175a3e2da2bb0897f644ed856b8528c633

tpm/tpm_i2c_stm_st33: Fix coccinelle warnings. Possible NULL pointer dereference

Author: Christophe Ricard <christophe.ricard@gmail.com> If !client the kernel mays oops in dev_info when doing client->dev. Reported-by: Peter Huewe Signed-off-by: Christophe Ricard Signed-off-by: Peter Huewe — drivers/char/tpm/tpm_i2c_stm_st33.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c index e643c86..86203b0 100644 — a/drivers/char/tpm/tpm_i2c_stm_st33.c +++ b/drivers/char/tpm/tpm_i2c_stm_st33.c @@ -720,7 +720,7 @@ tpm_stm_i2c_probe(struct i2c_client *client, …

Continue reading