diff --git a/[refs] b/[refs] index 9667a95b6bf4..e199492d5304 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3fd44cd40c920cb26c2697cea59442cd40cc8227 +refs/heads/master: 40dc23aa82d51147a24f659a7c006ae4bb14009a diff --git a/trunk/drivers/video/tmiofb.c b/trunk/drivers/video/tmiofb.c index 8e4a446b5ed1..b244f060f151 100644 --- a/trunk/drivers/video/tmiofb.c +++ b/trunk/drivers/video/tmiofb.c @@ -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);