forked from luck/tmp_suning_uos_patched
vfio/mdev: Avoid masking error code to EBUSY
Instead of masking return error to -EBUSY, return actual error returned by the driver. Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
50732af3b6
commit
d300046350
|
@ -141,7 +141,7 @@ static int mdev_device_remove_ops(struct mdev_device *mdev, bool force_remove)
|
|||
*/
|
||||
ret = parent->ops->remove(mdev);
|
||||
if (ret && !force_remove)
|
||||
return -EBUSY;
|
||||
return ret;
|
||||
|
||||
sysfs_remove_groups(&mdev->dev.kobj, parent->ops->mdev_attr_groups);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user