From ab5ef45e0feb5dd3657a36bf6b773d98bc345a71 Mon Sep 17 00:00:00 2001 From: Timo Savola Date: Thu, 20 Sep 2007 14:31:43 +0300 Subject: [PATCH] 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 --- drivers/video/omap/lcd_mipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.41.1