]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Check for address business before creating clients
authorJean Delvare <khali@linux-fr.org>
Sun, 10 Aug 2008 20:56:16 +0000 (22:56 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Sun, 10 Aug 2008 20:56:16 +0000 (22:56 +0200)
commit900df07e4ef89ab75f0df49ba42490885558f600
treed74732ca258661b744787d61a5402f8c8d5d9d9c
parent80cb5b5171fdca7e2b59d64c6a1dfd14c6c406a4
i2c: Check for address business before creating clients

We check for address business in i2c_probe_address(),
i2c_detect_address() and i2c_new_probed_device(), but this isn't
sufficient. Drivers can call i2c_attach_client() and
i2c_new_device() on any address, so we must check the address there
as well.

This fixes bug #11239:
http://bugzilla.kernel.org/show_bug.cgi?id=11239

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c