summaryrefslogtreecommitdiff
path: root/drivers/phy/eswin/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPranjal Shrivastava <praan@google.com>2026-06-04 14:03:10 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-06-04 09:21:50 +0200
commit43bd9e6d5513cb1edbafdeef146a1edc3aaced56 (patch)
treed87c6f5836c86838cf73b87cfec273c3382aa3a9 /drivers/phy/eswin/git@git.tavy.me:linux.git
parentc468814b3fd384225a10f0ad1d6905937e50b233 (diff)
iommu/vt-d: Fix RB-tree corruption in probe error path
The info->node RB-tree member is zero-initialized via kzalloc. If a device does not support ATS, the device_rbtree_insert() call is skipped. If a subsequent probe step fails, the error path jumps to device_rbtree_remove(), which misinterprets the zeroed node as a tree root and corrupts the device RB-tree. Fix this by explicitly initializing the RB-node as empty using RB_CLEAR_NODE() during initialization and guarding the removal with RB_EMPTY_NODE(). Fixes: 4f1492efb495 ("iommu/vt-d: Revert ATS timing change to fix boot failure") Reported-by: sashiko-bot@kernel.org Closes: https://lore.kernel.org/all/20260525205628.CD4431F000E9@smtp.kernel.org/ Suggested-by: Baolu Lu <baolu.lu@linux.intel.com> Signed-off-by: Pranjal Shrivastava <praan@google.com> Link: https://lore.kernel.org/r/20260531170254.60493-2-praan@google.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions