]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83781d) Fix W83782D support (NULL pointer dereference)
authorJean Delvare <khali@linux-fr.org>
Fri, 8 May 2009 18:27:28 +0000 (20:27 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 8 May 2009 18:27:28 +0000 (20:27 +0200)
commit265df602e9637740e526ca08f28abf54646ae1a1
tree59b9f5dcd4b652e127f0908ab162536d588ad0fc
parentd638321dc136e853b9f2170e32e9e508d0660c31
hwmon: (w83781d) Fix W83782D support (NULL pointer dereference)

Commit 5d239ed63663e8f8126b5c049422816e854a4977 (hwmon: (w83781d) Stop
abusing struct i2c_client for ISA devices) broke W83782D support for
devices connected on the ISA bus. You will hit a NULL pointer
dereference as soon as you read any device attribute. Other devices,
and W83782D devices on the SMBus, aren't affected.

Reported-by: Michel Abraham
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Michel Abraham
drivers/hwmon/w83781d.c