Displaying 2 results from an estimated 2 matches for "free_start".
2016 Nov 14
3
[PATCH] crypto: add virtio-crypto driver
...+ goto free_dev;
+ }
+ virtio_device_ready(vdev);
+
+ virtcrypto_update_status(vcrypto);
+
+ if (vcrypto->status & VIRTIO_CRYPTO_S_HW_READY) {
+ err = virtcrypto_dev_start(vcrypto);
+ if (err) {
+ dev_err(&vdev->dev, "Failed to start virtio crypto device.\n");
+ goto free_start;
+ }
+ }
+
+ return 0;
+
+free_start:
+ virtcrypto_dev_stop(vcrypto);
+free_dev:
+ virtcrypto_devmgr_rm_dev(vcrypto);
+free:
+ kfree(vcrypto);
+ return err;
+}
+
+static void virtcrypto_del_vqs(struct virtio_crypto *vcrypto)
+{
+ struct virtio_device *vdev = vcrypto->vdev;
+
+ virtcrypto_clean_...
2016 Nov 14
3
[PATCH] crypto: add virtio-crypto driver
...+ goto free_dev;
+ }
+ virtio_device_ready(vdev);
+
+ virtcrypto_update_status(vcrypto);
+
+ if (vcrypto->status & VIRTIO_CRYPTO_S_HW_READY) {
+ err = virtcrypto_dev_start(vcrypto);
+ if (err) {
+ dev_err(&vdev->dev, "Failed to start virtio crypto device.\n");
+ goto free_start;
+ }
+ }
+
+ return 0;
+
+free_start:
+ virtcrypto_dev_stop(vcrypto);
+free_dev:
+ virtcrypto_devmgr_rm_dev(vcrypto);
+free:
+ kfree(vcrypto);
+ return err;
+}
+
+static void virtcrypto_del_vqs(struct virtio_crypto *vcrypto)
+{
+ struct virtio_device *vdev = vcrypto->vdev;
+
+ virtcrypto_clean_...