]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: lcd_mipid: Fix OOM error reporting
authorTimo Savola <tsavola@movial.fi>
Thu, 20 Sep 2007 11:31:43 +0000 (14:31 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 1 Oct 2007 17:44:43 +0000 (10:44 -0700)
Do not try access a memory region when its allocation failed.

Signed-off-by: Timo Savola <tsavola@movial.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/video/omap/lcd_mipid.c

index 922e3228841102244d246052586a5f0e6f94f2ca..ef071a600b08233d7d0e2a52cf6bfd0b2f493804 100644 (file)
@@ -561,7 +561,7 @@ static int mipid_spi_probe(struct spi_device *spi)
 
        md = kzalloc(sizeof(*md), GFP_KERNEL);
        if (md == NULL) {
-               dev_err(&md->spi->dev, "out of memory\n");
+               dev_err(&spi->dev, "out of memory\n");
                return -ENOMEM;
        }