Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b0ea93f authored by Arvind Yadav's avatar Arvind Yadav Committed by Daniel Vetter
Browse files

gpu: drm: mgag200: mgag200_main:- Handle error from pci_iomap

parent 56926500
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -145,6 +145,8 @@ static int mga_vram_init(struct mga_device *mdev)
	}

	mem = pci_iomap(mdev->dev->pdev, 0, 0);
	if (!mem)
		return -ENOMEM;

	mdev->mc.vram_size = mga_probe_vram(mdev, mem);