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

Commit 40dc23aa authored by Alan Cox's avatar Alan Cox Committed by Jiri Kosina
Browse files

tmiofb: missing NULL pointer checks

parent 3fd44cd4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -694,6 +694,10 @@ static int __devinit tmiofb_probe(struct platform_device *dev)
		dev_err(&dev->dev, "NULL platform data!\n");
		return -EINVAL;
	}
	if (ccr == NULL || lcr == NULL || vram == NULL || irq < 0) {
		dev_err(&dev->dev, "missing resources\n");
		return -EINVAL;
	}

	info = framebuffer_alloc(sizeof(struct tmiofb_par), &dev->dev);