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 3/5] x86: io delay - add checking for NULL early param
Date: Sat, 05 Jul 2008 15:53:37 +0400	[thread overview]
Message-ID: <486f61aa.2134440a.2343.ffffbc57@mx.google.com> (raw)
In-Reply-To: 20080705115334.892720771@gmail.com

[-- Attachment #1: ep-io-delay --]
[-- Type: text/plain, Size: 580 bytes --]

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

Index: linux-2.6.git/arch/x86/kernel/io_delay.c
====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/io_delay.c	2008-06-23 22:30:14.000000000 +0400
+++ linux-2.6.git/arch/x86/kernel/io_delay.c	2008-07-05 12:49:06.000000000 +0400
@@ -103,6 +103,9 @@ void __init io_delay_init(void)
 
 static int __init io_delay_param(char *s)
 {
+	if (!s)
+		return -EINVAL;
+
 	if (!strcmp(s, "0x80"))
 		io_delay_type = CONFIG_IO_DELAY_TYPE_0X80;
 	else if (!strcmp(s, "0xed"))

-- 

  parent reply	other threads:[~2008-07-05 11:58 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 ` Cyrill Gorcunov [this message]
2008-07-05 11:53 ` [patch 4/5] x86: smpboot maxcpus " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 5/5] x86: e820 memmap " Cyrill Gorcunov

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=486f61aa.2134440a.2343.ffffbc57@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