drm/i915/gvt: Propagate vfio_set_irqs_validate_and_prepare() error

Return the actual error code from vfio_set_irqs_validate_and_prepare()
instead of always collapsing to -EINVAL. While the helper
currently returns -EINVAL in most cases, passing through the real
error code is more future-proof.

While at it, drop the stray 'intel:' prefix from the error
message.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw.linux@gmail.com>
Link: https://lore.kernel.org/r/20251001142336.82089-1-andi.shyti@linux.intel.com
This commit is contained in:
Andi Shyti 2025-10-01 16:23:36 +02:00 committed by Andi Shyti
parent cc7e1a9b59
commit a5e07980e6
1 changed files with 2 additions and 2 deletions

View File

@ -1369,8 +1369,8 @@ static long intel_vgpu_ioctl(struct vfio_device *vfio_dev, unsigned int cmd,
ret = vfio_set_irqs_validate_and_prepare(&hdr, max,
VFIO_PCI_NUM_IRQS, &data_size);
if (ret) {
gvt_vgpu_err("intel:vfio_set_irqs_validate_and_prepare failed\n");
return -EINVAL;
gvt_vgpu_err("vfio_set_irqs_validate_and_prepare failed\n");
return ret;
}
data = memdup_user((void __user *)(arg + minsz),