]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pci/xen-pcifront.c
drm/radeon: fix userptr return value checking (v2)
[karo-tx-linux.git] / drivers / pci / xen-pcifront.c
index b1ffebec9b9e87e388e21d25eb9ee9536aa56e21..7cfd2db02deb3c5502227676a9a99154244b18e4 100644 (file)
@@ -777,12 +777,13 @@ static int pcifront_publish_info(struct pcifront_device *pdev)
 {
        int err = 0;
        struct xenbus_transaction trans;
+       grant_ref_t gref;
 
-       err = xenbus_grant_ring(pdev->xdev, virt_to_mfn(pdev->sh_info));
+       err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref);
        if (err < 0)
                goto out;
 
-       pdev->gnt_ref = err;
+       pdev->gnt_ref = gref;
 
        err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn);
        if (err)