Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/xe_sriov_vfio: Fix return value in xe_sriov_vfio_migration_supported()

The xe_sriov_vfio_migration_supported() function is type bool so
returning -EPERM means returning true. Return false instead.

Fixes: bd45d46ffc8f ("drm/xe/pf: Export helpers for VFIO")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/aTLEZ4g-FD-iMQ2V@stanley.mountain
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
(cherry picked from commit 0a2404c8f6a3a120f79c57ef8a3302c8e8bc34d9)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>

authored by

Dan Carpenter and committed by
Thomas Hellström
eb192bed 256edb26

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_sriov_vfio.c
··· 21 21 bool xe_sriov_vfio_migration_supported(struct xe_device *xe) 22 22 { 23 23 if (!IS_SRIOV_PF(xe)) 24 - return -EPERM; 24 + return false; 25 25 26 26 return xe_sriov_pf_migration_supported(xe); 27 27 }