From: Dave Jones <davej@redhat.com>
To: Jason Dravet <dravet@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clarify WARNING: at fs/sysfs/dir.c:481 sysfs_add
Date: Sun, 15 Jan 2012 10:30:32 -0500 [thread overview]
Message-ID: <20120115153032.GA716@redhat.com> (raw)
In-Reply-To: <SNT144-W1DC10F59BB90518BD3FBFDF820@phx.gbl>
On Sun, Jan 15, 2012 at 09:16:13AM -0600, Jason Dravet wrote:
>
> This patch makes it clear that the problem is in the BIOS of the computer and not the kernel. This patch applies to kernel 3.2.1.
>
> Reported-by: Greg White <pcguy11@live.com>
> Signed-off-by: Jason Dravet <dravet@hotmail.com>
> Tested-by: Greg White <pcguy11@live.com>
>
> --- dir.orig 2012-01-14 18:58:20.026745884 -0600
> +++ dir.c 2012-01-14 19:52:33.011444581 -0600
> @@ -479,6 +479,8 @@ int sysfs_add_one(struct sysfs_addrm_cxt
> (path == NULL) ? sd->s_name :
> strcat(strcat(sysfs_pathname(acxt->parent_sd, path), "/"),
> sd->s_name));
> + WARN(1, KERN_WARNING
> + "Your BIOS is broken. Please contact your computer manufacturer.");
> kfree(path);
> }
That certainly isn't always the case. Incorrectly written drivers
have also taken this codepath before now.
Dave
next prev parent reply other threads:[~2012-01-15 15:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 15:16 [PATCH] clarify WARNING: at fs/sysfs/dir.c:481 sysfs_add Jason Dravet
2012-01-15 15:30 ` Dave Jones [this message]
[not found] ` <SNT144-W477468478D64073A33B390DF830@phx.gbl>
2012-01-16 21:28 ` Jason Dravet
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=20120115153032.GA716@redhat.com \
--to=davej@redhat.com \
--cc=dravet@hotmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.