From: Tony Lindgren <tony@atomide.com>
To: Timo Savola <tsavola@movial.fi>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] OMAP: lcd_mipid: Fix OOM error reporting
Date: Mon, 1 Oct 2007 10:44:56 -0700 [thread overview]
Message-ID: <20071001174456.GL24656@atomide.com> (raw)
In-Reply-To: <1190287903652-git-send-email-tsavola@movial.fi>
* 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
prev parent reply other threads:[~2007-10-01 17:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-20 11:31 [PATCH] OMAP: lcd_mipid: Fix OOM error reporting Timo Savola
2007-10-01 17:44 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071001174456.GL24656@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=tsavola@movial.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox