summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-05-11 17:37:13 +0300
committerWolfram Sang <wsa+renesas@sang-engineering.com>2026-05-31 00:57:19 +0300
commitb1a58ed9eab146b36f41a55db8f5d7ce9fdedf3f (patch)
tree20180f6b5b6aae45bae2159ba7e50c893e3076fe /tools/lib/python/kdoc/parse_data_structs.py
parentba14d7cf2fe7284610a29854bdff22b2537d3ce6 (diff)
downloadlinux-b1a58ed9eab146b36f41a55db8f5d7ce9fdedf3f.tar.xz
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 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions