public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: lcd_mipid: Fix OOM error reporting
@ 2007-09-20 11:31 Timo Savola
  2007-10-01 17:44 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Timo Savola @ 2007-09-20 11:31 UTC (permalink / raw)
  To: linux-omap-open-source

Do not try access a memory region when its allocation failed.

Signed-off-by: Timo Savola <tsavola@movial.fi>
---
 drivers/video/omap/lcd_mipid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c
index 922e322..ef071a6 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;
 	}
 
-- 
1.5.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] OMAP: lcd_mipid: Fix OOM error reporting
  2007-09-20 11:31 [PATCH] OMAP: lcd_mipid: Fix OOM error reporting Timo Savola
@ 2007-10-01 17:44 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-10-01 17:44 UTC (permalink / raw)
  To: Timo Savola; +Cc: linux-omap-open-source

* Timo Savola <tsavola@movial.fi> [070920 04:32]:
> Do not try access a memory region when its allocation failed.
> 
> Signed-off-by: Timo Savola <tsavola@movial.fi>
> ---
>  drivers/video/omap/lcd_mipid.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c
> index 922e322..ef071a6 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;
>  	}
>  

Thanks, pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-01 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 11:31 [PATCH] OMAP: lcd_mipid: Fix OOM error reporting Timo Savola
2007-10-01 17:44 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox