diff --git a/CHANGES b/CHANGES index af5e7207..873e05f7 100644 --- a/CHANGES +++ b/CHANGES @@ -2,12 +2,13 @@ lm_sensors CHANGES file ----------------------- SVN-HEAD + Library: Don't choke on unrecognized devices, part 2 Program sensors-detect: New device ID for the SMSC SCH5317 2.10.6 "Welcome Home Lina" (20080306) Library: Fix fschrc and fschmd support Fix sysfs presence detection - Don't choke on unrecognized devices (#2087) + Don't choke on unrecognized devices, part 1 (#2087) Fix lm93 vid2 access (#2295) No in1 on w83783s Support DOS-style configuration files again (#2284) diff --git a/lib/sysfs.c b/lib/sysfs.c index 2adcf8cb..19f542e0 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -182,10 +182,8 @@ int sensors_read_sysfs_chips(void) dlist_for_each_data(clsdevs, clsdev, struct sysfs_class_device) { struct sysfs_device *dev; - if (!(dev = sysfs_get_classdev_device(clsdev))) { - ret = -SENSORS_ERR_PROC; - goto exit; - } + if (!(dev = sysfs_get_classdev_device(clsdev))) + continue; if ((ret = sensors_read_one_sysfs_chip(dev))) goto exit; }