Upstream changeset: r5870 Fix error seen in sensors-detect if i2c bus numbering is not sequential. --- prog/detect/sensors-detect | 1 + 1 file changed, 1 insertion(+) --- lm_sensors-3.2.0.orig/prog/detect/sensors-detect +++ lm_sensors-3.2.0/prog/detect/sensors-detect @@ -5933,6 +5933,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};