diff options
| author | Adrian Hunter <adrian.hunter@intel.com> | 2026-08-07 17:56:26 +0300 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-08-08 15:02:50 +0200 |
| commit | 8bed7f4fa710914b7f05fd59998316bfb4d43385 (patch) | |
| tree | 5ec67430837be17469181d606d16c7af77f00b05 /scripts/patch-kernel | |
| parent | 456f832e5fc26fbfd3b8200fd4553eee520cc377 (diff) | |
| download | linux-8bed7f4fa710914b7f05fd59998316bfb4d43385.tar.gz linux-8bed7f4fa710914b7f05fd59998316bfb4d43385.zip | |
i3c: Fix unlocked dereference of dev->desc in i3c_device_get_supported_xfer_mode()
i3c_device_get_supported_xfer_mode() uses dev->desc to obtain the
master controller. However, dev->desc must not be dereferenced unless
bus->lock is held, and this function does not take that lock.
The function only needs access to the master controller associated with
the device's bus. Use dev->bus instead, which is always valid for the
lifetime of the device and does not require dereferencing dev->desc.
Fixes: 256a21743d91 ("i3c: Add HDR API support")
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260807145638.168865-3-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
