summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2026-09-20 18:12:33 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-09-21 23:25:36 +0200
commit2bc2b1b89f65b5b75ffae0cf3d67d2415611004c (patch)
tree07584ed81a5ee32308e6e649d346f7f2fdfcd238 /include/linux/platform_data
parentb1a25e8e143ef880450e6399fb0733b66a1c29f0 (diff)
downloadlinux-next-2bc2b1b89f65b5b75ffae0cf3d67d2415611004c.tar.gz
linux-next-2bc2b1b89f65b5b75ffae0cf3d67d2415611004c.zip
i3c: mipi-i3c-hci-pci: Set drvdata before creating LTR sysfs attribute
intel_i3c_init() creates the pm_qos_latency_tolerance_us sysfs attribute before probe calls pci_set_drvdata(). A userspace write to the attribute can therefore invoke intel_ltr_set(), which uses pci_get_drvdata(), before drvdata has been initialized. Move pci_set_drvdata() before hci->info->init() so drvdata is available before the sysfs attribute becomes accessible. Fixes: 884a33131f2a ("i3c: mipi-i3c-hci-pci: Add LTR support for Intel controllers") 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/20260920151248.46936-4-adrian.hunter@intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions