mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
Commit31b9887c72("i3c: remove i2c board info from i2c_dev_desc") removed the boardinfo from i2c_dev_desc to decouple device enumeration from setup but did not correctly lookup the i2c_dev_desc to store the new device, instead dereferencing an uninitialized variable. Lookup the device that has already been registered by address to store the i2c client device. Fixes:31b9887c72("i3c: remove i2c board info from i2c_dev_desc") Reported-by: kernel test robot <[email protected]> Cc: Alexandre Belloni <[email protected]> Signed-off-by: Jamie Iles <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]