public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: mingo@elte.hu, akpm@linux-foundation.org, hpa@zytor.com,
	tglx@linutronix.de, andi@firstfloor.org
Cc: linux-kernel@vger.kernel.org, Cyrill Gorcunov <gorcunov@gmail.com>
Subject: [patch 5/5] x86: e820 memmap - add checking for NULL early param
Date: Sat, 05 Jul 2008 15:53:39 +0400	[thread overview]
Message-ID: <486f61ac.2834440a.3f3c.ffffc33a@mx.google.com> (raw)
In-Reply-To: 20080705115334.892720771@gmail.com

[-- Attachment #1: ep-memmap --]
[-- Type: text/plain, Size: 534 bytes --]

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Index: linux-2.6.git/arch/x86/kernel/e820.c
====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/e820.c	2008-06-28 21:15:44.000000000 +0400
+++ linux-2.6.git/arch/x86/kernel/e820.c	2008-07-05 12:55:55.000000000 +0400
@@ -1131,6 +1131,9 @@ static int __init parse_memmap_opt(char 
 	char *oldp;
 	u64 start_at, mem_size;
 
+	if (!p)
+		return -EINVAL;
+
 	if (!strcmp(p, "exactmap")) {
 #ifdef CONFIG_CRASH_DUMP
 		/*

-- 

      parent reply	other threads:[~2008-07-05 11:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080705115334.892720771@gmail.com>
2008-07-05 11:53 ` [patch 1/5] x86: ACPI - add checking for NULL early param Cyrill Gorcunov
2008-07-22  9:53   ` Andrew Morton
2008-07-22 10:19     ` Cyrill Gorcunov
2008-07-05 11:53 ` [patch 2/5] x86: idle process " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 3/5] x86: io delay " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 4/5] x86: smpboot maxcpus " Cyrill Gorcunov
2008-07-05 11:53 ` Cyrill Gorcunov [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=486f61ac.2834440a.3f3c.ffffc33a@mx.google.com \
    --to=gorcunov@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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