search for: err_reserve

Displaying 6 results from an estimated 6 matches for "err_reserve".

2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...o-pci-notify"); + if (device) { + vp_dev->res_device = request_capability(pci_dev, device, + "virtio-pci-device"); + } + err = -EINVAL; + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || + (device && !vp_dev->res_device)) + goto err_reserve; + err = -EINVAL; vp_dev->common = map_capability(pci_dev, common, sizeof(struct virtio_pci_common_cfg), 4, @@ -714,6 +749,15 @@ err_map_notify: err_map_isr: pci_iounmap(pci_dev, vp_dev->common); err_map_common: +err_reserve: + if (vp_dev->res_common) + release_resource(vp_d...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...o-pci-notify"); + if (device) { + vp_dev->res_device = request_capability(pci_dev, device, + "virtio-pci-device"); + } + err = -EINVAL; + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || + (device && !vp_dev->res_device)) + goto err_reserve; + err = -EINVAL; vp_dev->common = map_capability(pci_dev, common, sizeof(struct virtio_pci_common_cfg), 4, @@ -714,6 +749,15 @@ err_map_notify: err_map_isr: pci_iounmap(pci_dev, vp_dev->common); err_map_common: +err_reserve: + if (vp_dev->res_common) + release_resource(vp_d...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...; + if (device) { + vp_dev->res_device = request_capability(pci_dev, device, + PAGE_SIZE, + "virtio-pci-device"); + } + err = -EINVAL; + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || + (device && !vp_dev->res_device)) + goto err_reserve; + err = -EINVAL; vp_dev->common = map_capability(pci_dev, common, sizeof(struct virtio_pci_common_cfg), 4, @@ -714,6 +763,15 @@ err_map_notify: err_map_isr: pci_iounmap(pci_dev, vp_dev->common); err_map_common: +err_reserve: + if (vp_dev->res_common) + release_resource(vp_d...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...; + if (device) { + vp_dev->res_device = request_capability(pci_dev, device, + PAGE_SIZE, + "virtio-pci-device"); + } + err = -EINVAL; + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || + (device && !vp_dev->res_device)) + goto err_reserve; + err = -EINVAL; vp_dev->common = map_capability(pci_dev, common, sizeof(struct virtio_pci_common_cfg), 4, @@ -714,6 +763,15 @@ err_map_notify: err_map_isr: pci_iounmap(pci_dev, vp_dev->common); err_map_common: +err_reserve: + if (vp_dev->res_common) + release_resource(vp_d...
2015 Jun 16
0
[PATCH] virtio-pci: alloc only resources actually used.
...{ > + vp_dev->res_device = request_capability(pci_dev, device, > + "virtio-pci-device"); > + } > + err = -EINVAL; > + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || > + (device && !vp_dev->res_device)) > + goto err_reserve; > + > err = -EINVAL; > vp_dev->common = map_capability(pci_dev, common, > sizeof(struct virtio_pci_common_cfg), 4, map_capability has a bunch of checks in place to validate the capability structure. With request_capability called earlier, they are now done too late. >...
2015 Jun 18
0
[PATCH v2] virtio-pci: alloc only resources actually used.
..., > + PAGE_SIZE, > + "virtio-pci-device"); > + } Please drop {} around a single statement. > + err = -EINVAL; > + if (!vp_dev->res_common || !vp_dev->res_isr || !vp_dev->res_notify || > + (device && !vp_dev->res_device)) > + goto err_reserve; > + > err = -EINVAL; > vp_dev->common = map_capability(pci_dev, common, > sizeof(struct virtio_pci_common_cfg), 4, > @@ -714,6 +763,15 @@ err_map_notify: > err_map_isr: > pci_iounmap(pci_dev, vp_dev->common); > err_map_common: > +err_reserve: > + i...