From: Timo Savola Date: Thu, 20 Sep 2007 11:31:43 +0000 (+0300) Subject: OMAP: lcd_mipid: Fix OOM error reporting X-Git-Tag: v2.6.23-omap1~34 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ab5ef45e0feb5dd3657a36bf6b773d98bc345a71;p=linux-2.6-omap-h63xx.git OMAP: lcd_mipid: Fix OOM error reporting Do not try access a memory region when its allocation failed. Signed-off-by: Timo Savola Signed-off-by: Tony Lindgren --- diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c index 922e3228841..ef071a600b0 100644 --- a/drivers/video/omap/lcd_mipid.c +++ b/drivers/video/omap/lcd_mipid.c @@ -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; }