summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-05-11 16:37:13 +0200
committerWolfram Sang <wsa+renesas@sang-engineering.com>2026-05-30 23:57:19 +0200
commitb1a58ed9eab146b36f41a55db8f5d7ce9fdedf3f (patch)
tree20180f6b5b6aae45bae2159ba7e50c893e3076fe /scripts/Makefile.thinlto
parentba14d7cf2fe7284610a29854bdff22b2537d3ce6 (diff)
i2c: core: fix adapter deregistration race
Adapters can be looked up by their id using i2c_get_adapter() which takes a reference to the embedded struct device. Remove the adapter from the IDR before tearing it down during deregistration (and on registration failure) to make sure its resources are not accessed after having been freed (e.g. the device name). Fixes: 35fc37f81881 ("i2c: Limit core locking to the necessary sections") Cc: stable@vger.kernel.org # 2.6.31 Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions