mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
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:bd45d46ffc("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 commit0a2404c8f6) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
This commit is contained in:
parent
256edb267a
commit
eb192bedf5
|
|
@ -21,7 +21,7 @@ EXPORT_SYMBOL_FOR_MODULES(xe_sriov_vfio_get_pf, "xe-vfio-pci");
|
|||
bool xe_sriov_vfio_migration_supported(struct xe_device *xe)
|
||||
{
|
||||
if (!IS_SRIOV_PF(xe))
|
||||
return -EPERM;
|
||||
return false;
|
||||
|
||||
return xe_sriov_pf_migration_supported(xe);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user