summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPeiyang He <peiyang_he@smail.nju.edu.cn>2026-11-06 20:28:32 +0800
committerJason Gunthorpe <jgg@nvidia.com>2026-11-10 20:51:16 -0400
commit231e471ac4d0579bba3a800fc46519f8a04894d9 (patch)
treeeb948a1d6253f4a933290ecb00fd845cb5a0c8c8 /scripts/Makefile.thinlto
parenta12337013fcaf6eea29dce8409b84bd4588f7801 (diff)
downloadlinux-next-231e471ac4d0579bba3a800fc46519f8a04894d9.tar.gz
linux-next-231e471ac4d0579bba3a800fc46519f8a04894d9.zip
iommufd/selftest: Fix wrong slot cleared on mock HW queue destroy
mock_hw_queue_init_phys() publishes a new queue in mock_viommu->hw_queue[index] but never stores the index in mock_hw_queue->index, while mock_hw_queue_destroy() uses that field to clear the slot. Since the object is zero-allocated, destroying any queue always clears hw_queue[0] instead of the queue's own slot. Record the index before publishing the queue so that destroy clears the correct slot. Fixes: 20896914da8a ("iommufd/selftest: Add coverage for IOMMUFD_CMD_HW_QUEUE_ALLOC") Signed-off-by: Peiyang He <peiyang_he@smail.nju.edu.cn> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/09A8E000F2353E67+20261106122832.88995-1-peiyang_he@smail.nju.edu.cn Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions