]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-core: Erase pointer to clientdata on removal
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 4 May 2010 09:09:27 +0000 (11:09 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 4 May 2010 09:09:27 +0000 (11:09 +0200)
commitba6959342d664617246de4efa47beb5fb021c1a8
tree7f2f49df9dc66b334b85f83347df03d2b0d0a721
parent72e2c146eb9e5670ba38cc0829f98c6830dd1183
i2c-core: Erase pointer to clientdata on removal

After discovering that a lot of i2c-drivers leave the pointer to their
clientdata dangling, it was decided to let the core handle this issue.
It is assumed that the core may access the private data after remove()
as there are no guarantees for the lifetime of such pointers anyhow (see
thread starting at http://lkml.org/lkml/2010/3/21/68)

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Documentation/i2c/writing-clients
drivers/i2c/i2c-core.c