From 91ea5dc075379fd8fecd7f751906dead817e8075 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 19 Oct 2010 20:06:45 +0000 Subject: [PATCH] Fix error seen in sensors-detect if i2c bus numbering is not sequential git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5870 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 1 + 2 files changed, 2 insertions(+) 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};