Commit 0619d9e8 authored by Allen Pais's avatar Allen Pais Committed by Bartlomiej Zolnierkiewicz
Browse files

video: fbdev: matroxfb: return -ENOMEM on allocation failure

parent 36452b8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2056,7 +2056,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm

	minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
	if (!minfo)
		return -1;
		return -ENOMEM;

	minfo->pcidev = pdev;
	minfo->dead = 0;