aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGravatar Jamie Iles <quic_jiles@quicinc.com> 2022-03-08 13:42:26 +0000
committerGravatar Alexandre Belloni <alexandre.belloni@bootlin.com> 2022-03-08 22:33:52 +0100
commit6cbf8b38dfe3aabe330f2c356949bc4d6a1f034f (patch)
tree19b3ed506b30dbf64a4bde142fb9ace89b1c0e4d /include/linux
parenti3c: support dynamically added i2c devices (diff)
downloadlinux-6cbf8b38dfe3aabe330f2c356949bc4d6a1f034f.tar.gz
linux-6cbf8b38dfe3aabe330f2c356949bc4d6a1f034f.tar.bz2
linux-6cbf8b38dfe3aabe330f2c356949bc4d6a1f034f.zip
i3c: fix uninitialized variable use in i2c setup
Commit 31b9887c7258 ("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: 31b9887c7258 ("i3c: remove i2c board info from i2c_dev_desc") Reported-by: kernel test robot <lkp@intel.com> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Jamie Iles <quic_jiles@quicinc.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220308134226.1042367-1-quic_jiles@quicinc.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions