Changeset 5147

Show
Ignore:
Timestamp:
03/16/08 18:30:20 (6 years ago)
Author:
khali
Message:

Don't choke on unrecognized devices, part 2. In case hwmon devices have
no underlying physical device, just ignore them. This happened in kernel
2.6.25-rc5-git4 with the newly added generic thermal zone device.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5139 r5147  
    33 
    44SVN-HEAD 
     5  Library: Don't choke on unrecognized devices, part 2 
    56  Program sensors-detect: New device ID for the SMSC SCH5317 
    67 
     
    89  Library: Fix fschrc and fschmd support 
    910           Fix sysfs presence detection 
    10            Don't choke on unrecognized devices (#2087) 
     11           Don't choke on unrecognized devices, part 1 (#2087) 
    1112           Fix lm93 vid2 access (#2295) 
    1213           No in1 on w83783s 
  • lm-sensors/trunk/lib/sysfs.c

    r5086 r5147  
    183183        dlist_for_each_data(clsdevs, clsdev, struct sysfs_class_device) { 
    184184                struct sysfs_device *dev; 
    185                 if (!(dev = sysfs_get_classdev_device(clsdev))) { 
    186                         ret = -SENSORS_ERR_PROC; 
    187                         goto exit; 
    188                 } 
     185                if (!(dev = sysfs_get_classdev_device(clsdev))) 
     186                        continue; 
    189187                if ((ret = sensors_read_one_sysfs_chip(dev))) 
    190188                        goto exit;