aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/tpm/tpm_i2c_stm_st33.h
AgeCommit message (Collapse)Author
2013-02-05tpm_i2c_stm_st33: fix oops when i2c client is unavailableKent Yoder
When no i2c bus exists, user-space can cause an oops by triggering a device probe through a message sent to an i2c "new_device" sysfs entry. Adding a check for a NULL i2c client structure in the probe function closes the hole. This patch also fixes accessing the NULL client struct in the print function call reporting the error. Reported-by: Peter Hüwe <PeterHuewe@gmx.de> Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2013-02-05tpm: rename STM driver to match other i2c driversKent Yoder
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>