aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2024-05-16 17:48:30 +0000
committerAlex Williamson <[email protected]>2024-05-17 14:00:52 +0000
commitcbb325e77fbe62a06184175aa98c9eb98736c3e8 (patch)
treea54d3354e9fda7c468d20478fdc7140dca01c050 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentvfio: remove an extra semicolon (diff)
downloadkernel-cbb325e77fbe62a06184175aa98c9eb98736c3e8.tar.gz
kernel-cbb325e77fbe62a06184175aa98c9eb98736c3e8.zip
vfio/pci: Restore zero affected bus reset devices warning
Yi notes relative to commit f6944d4a0b87 ("vfio/pci: Collect hot-reset devices to local buffer") that we previously tested the resulting device count with a WARN_ON, which was removed when we switched to the in-loop user copy in commit b56b7aabcf3c ("vfio/pci: Copy hot-reset device info to userspace in the devices loop"). Finding no devices in the bus/slot would be an unexpected condition, so let's restore the warning and trigger a -ERANGE error here as success with no devices would be an unexpected result to userspace as well. Suggested-by: Yi Liu <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Reviewed-by: Yi Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions