Displaying 5 results from an estimated 5 matches for "sysfs_fail".
2019 Oct 15
1
[PATCH V3 1/7] mdev: class id support
...value here, so it looks like this fails to create the device but
returns success. Thanks,
Alex
> + goto class_id_fail;
> +
> ret = device_add(&mdev->dev);
> if (ret)
> goto add_fail;
> @@ -340,6 +350,7 @@ int mdev_device_create(struct kobject *kobj,
>
> sysfs_fail:
> device_del(&mdev->dev);
> +class_id_fail:
> add_fail:
> parent->ops->remove(mdev);
> ops_create_fail:
2019 Oct 11
0
[PATCH V3 1/7] mdev: class id support
...erwise 0.
@@ -324,6 +331,9 @@ int mdev_device_create(struct kobject *kobj,
if (ret)
goto ops_create_fail;
+ if (!mdev->class_id)
+ goto class_id_fail;
+
ret = device_add(&mdev->dev);
if (ret)
goto add_fail;
@@ -340,6 +350,7 @@ int mdev_device_create(struct kobject *kobj,
sysfs_fail:
device_del(&mdev->dev);
+class_id_fail:
add_fail:
parent->ops->remove(mdev);
ops_create_fail:
diff --git a/drivers/vfio/mdev/mdev_driver.c b/drivers/vfio/mdev/mdev_driver.c
index 0d3223aee20b..b7c40ce86ee3 100644
--- a/drivers/vfio/mdev/mdev_driver.c
+++ b/drivers/vfio/mdev/mdev...
2019 Oct 16
0
[PATCH V3 1/7] mdev: class id support
...oto ops_create_fail;
>>
>> + if (!mdev->class_id)
>> + goto class_id_fail;
>> +
>> ret = device_add(&mdev->dev);
>> if (ret)
>> goto add_fail;
>> @@ -340,6 +350,7 @@ int mdev_device_create(struct kobject *kobj,
>>
>> sysfs_fail:
>> device_del(&mdev->dev);
>> +class_id_fail:
> No need for new label. Just use add_fail label.
Ok.
>
>> add_fail:
>> parent->ops->remove(mdev);
>> ops_create_fail:
>> diff --git a/drivers/vfio/mdev/mdev_driver.c
>> b/drive...
2019 Oct 11
17
[PATCH V3 0/7] mdev based hardware virtio offloading support
Hi all:
There are hardware that can do virtio datapath offloading while having
its own control path. This path tries to implement a mdev based
unified API to support using kernel virtio driver to drive those
devices. This is done by introducing a new mdev transport for virtio
(virtio_mdev) and register itself as a new kind of mdev driver. Then
it provides a unified way for kernel virtio driver to
2019 Oct 11
17
[PATCH V3 0/7] mdev based hardware virtio offloading support
Hi all:
There are hardware that can do virtio datapath offloading while having
its own control path. This path tries to implement a mdev based
unified API to support using kernel virtio driver to drive those
devices. This is done by introducing a new mdev transport for virtio
(virtio_mdev) and register itself as a new kind of mdev driver. Then
it provides a unified way for kernel virtio driver to