mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +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: 17f22465c5 ("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>
This commit is contained in:
parent
5ae6cb153a
commit
0a2404c8f6
|
|
@ -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