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)
commit848ddf116b3d1711c956fac8627be12dfe8d736f
tree59b9f5dcd4b652e127f0908ab162536d588ad0fc
parentb9008708f24de8fb9bdbfb5d3b27e36d5a357eda
hwmon: (w83781d) Fix W83782D support (NULL pointer dereference)

Commit 360782dde00a2e6e7d9fd57535f90934707ab8a8 (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