commit | 47b6e477ed4ecacddd1f82d04d686026e08dc3db | [log] [tgz] |
---|---|---|
author | Jean Delvare <jdelvare@suse.de> | Thu Oct 10 08:04:06 2013 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Thu Oct 10 10:22:31 2013 +0200 |
tree | f9e03f3e28a24d9c4197d5483dd22585de74c583 | |
parent | 6d2cfb109725b748f47a242f87be9c31bf7e42c0 [diff] |
i2c: Not all adapters have a parent The code in acpi_i2c_register_devices() assumes that all i2c adapters have a parent. This is not necessarily the case, for example the i2c-stub driver instantiate a virtual i2c adapter without a parent. Check for this to avoid a NULL pointer deference. Signed-off-by: Jean Delvare <jdelvare@suse.de> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>