diff options
author | Parav Pandit <parav@mellanox.com> | 2019-05-01 01:49:31 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2019-05-07 20:23:13 +0300 |
commit | d3000463504b561db3c6d3aedc2c3106bdb29648 (patch) | |
tree | 781db1ebcbc4d7ff1ece02d073b85ecfd368b151 /drivers/vfio/mdev | |
parent | 50732af3b65691666c32fe89808545134c1ee2a0 (diff) | |
download | linux-d3000463504b561db3c6d3aedc2c3106bdb29648.tar.xz |
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>
Diffstat (limited to 'drivers/vfio/mdev')
-rw-r--r-- | drivers/vfio/mdev/mdev_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c index 00ca61392de9..836d31985f14 100644 --- a/drivers/vfio/mdev/mdev_core.c +++ b/drivers/vfio/mdev/mdev_core.c @@ -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; |