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

Commit ce01273f authored by Alexandru Juncu's avatar Alexandru Juncu Committed by Tomi Valkeinen
Browse files

matroxfb: replace kmalloc and memset with kzalloc.

parent 76e91893
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2029,10 +2029,9 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
		return -1;
	}

	minfo = kmalloc(sizeof(*minfo), GFP_KERNEL);
	minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
	if (!minfo)
		return -1;
	memset(minfo, 0, sizeof(*minfo));

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