aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/xen-pcifront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/xen-pcifront.c')
-rw-r--r--drivers/pci/xen-pcifront.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index b1ffebec9b9e..7cfd2db02deb 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -777,12 +777,13 @@ static int pcifront_publish_info(struct pcifront_device *pdev)
777{ 777{
778 int err = 0; 778 int err = 0;
779 struct xenbus_transaction trans; 779 struct xenbus_transaction trans;
780 grant_ref_t gref;
780 781
781 err = xenbus_grant_ring(pdev->xdev, virt_to_mfn(pdev->sh_info)); 782 err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref);
782 if (err < 0) 783 if (err < 0)
783 goto out; 784 goto out;
784 785
785 pdev->gnt_ref = err; 786 pdev->gnt_ref = gref;
786 787
787 err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn); 788 err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn);
788 if (err) 789 if (err)