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

Commit 7b566b1f authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds
Browse files

[PATCH] nvidiafb: Honor the return value of pci_enable_device



Check the return value of pci_enable_device().

Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b0b10324
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -984,7 +984,10 @@ static int nvidiafb_resume(struct pci_dev *dev)

	if (par->pm_state != PM_EVENT_FREEZE) {
		pci_restore_state(dev);
		pci_enable_device(dev);

		if (pci_enable_device(dev))
			goto fail;

		pci_set_master(dev);
	}

@@ -993,6 +996,7 @@ static int nvidiafb_resume(struct pci_dev *dev)
	fb_set_suspend (info, 0);
	nvidiafb_blank(FB_BLANK_UNBLANK, info);

fail:
	release_console_sem();
	return 0;
}