diff --git a/CHANGES b/CHANGES index ff2e9346..04c59d53 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ lm-sensors CHANGES file ----------------------- SVN HEAD + sensors-detect: Fix error seen if I2C bus numbers are not sequential Makefile: Check for bison and flex sensors-detect: Improve LM90 and W83L771 detection diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index d2f87e5a..9add1e9e 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5937,6 +5937,7 @@ sub generate_modprobes # the adapter drivers so that the numbers will be the same. If not, then # we only load the adapter drivers which are useful. foreach $adap (@i2c_adapters) { + next unless defined $adap; next if $adap->{autoload}; next if $adap->{driver} eq 'UNKNOWN'; next if not defined $configfile and not $adap->{used};