public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	Greg Kroah-Hartman <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] fix OOPS in platform uevent
Date: Thu, 20 Sep 2007 12:06:09 -0700	[thread overview]
Message-ID: <20070920190627.549173271@linux-foundation.org> (raw)
In-Reply-To: 20070920190608.339749785@linux-foundation.org

[-- Attachment #1: sysfs-oops.patch --]
[-- Type: text/plain, Size: 616 bytes --]

Environment wasn't being NULL terminated.
Suggested by Kay Sievers

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=9034

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>

--- a/drivers/base/platform.c	2007-06-25 09:03:10.000000000 -0700
+++ b/drivers/base/platform.c	2007-09-20 11:35:57.000000000 -0700
@@ -546,6 +546,7 @@ static int platform_uevent(struct device
 	struct platform_device	*pdev = to_platform_device(dev);
 
 	envp[0] = buffer;
+	envp[1] = NULL;
 	snprintf(buffer, buffer_size, "MODALIAS=%s", pdev->name);
 	return 0;
 }

-- 
Stephen Hemminger <shemminger@linux-foundation.org>


       reply	other threads:[~2007-09-20 19:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070920190608.339749785@linux-foundation.org>
2007-09-20 19:06 ` Stephen Hemminger [this message]
2007-09-20 19:06 ` [PATCH 2/3] missing null termination in power supply uevent Stephen Hemminger
2007-09-20 21:38   ` Anton Vorontsov
2007-09-20 19:06 ` [PATCH 3/3] missing null termination in one wire uevent Stephen Hemminger

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=20070920190627.549173271@linux-foundation.org \
    --to=shemminger@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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