]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/gvt: Propagate vfio_set_irqs_validate_and_prepare() error
authorAndi Shyti <andi.shyti@linux.intel.com>
Wed, 1 Oct 2025 14:23:36 +0000 (16:23 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 2 Oct 2025 10:09:30 +0000 (12:09 +0200)
commita5e07980e62deeb849e59c9f14299ea3f291969e
treed57abc2674eba0f2d665aaf835cb27a3a07285b1
parentcc7e1a9b596c9d9dc3324c056cf8162e9fca2765
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
drivers/gpu/drm/i915/gvt/kvmgt.c