diff options
author | Daniel Mack <daniel@zonque.org> | 2023-10-18 11:46:13 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-10-28 14:47:49 +0200 |
commit | 53801d2e762a611d972e91d151df56c3412ca5cf (patch) | |
tree | 31d84bdd47d81cd1ea2cac81dd01ef0a614960dd /security/smack | |
parent | 702c0dd7bcf169c44cb4a67447532861877c2744 (diff) | |
download | linux-53801d2e762a611d972e91d151df56c3412ca5cf.tar.gz linux-53801d2e762a611d972e91d151df56c3412ca5cf.tar.bz2 linux-53801d2e762a611d972e91d151df56c3412ca5cf.zip |
i2c: core: fix lockdep warning for sparsely nested adapter chain
When adapters are chained in a sparse manner (with intermediate MFD devices,
for instance) the code currently fails to use the correct subclass for
the adapter's bus_lock which leads to false-positive lockdep warnings.
Fix this by walking the entire pedigree of the device and count all
adapters along the way instead of just checking the immediate parent.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'security/smack')
0 files changed, 0 insertions, 0 deletions