mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: Pavel Machek <pavel@suse.cz>
Cc: Len Brown <lenb@kernel.org>,
	"stable@kernel.org" <stable@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [STABLE PATCH .26 .27] ACPI: avoid empty file name in sysfs
Date: Mon, 17 Nov 2008 09:40:12 +0800	[thread overview]
Message-ID: <1226886012.15014.231.camel@rzhang-dt> (raw)
In-Reply-To: <20081115171725.GB1523@ucw.cz>

On Sun, 2008-11-16 at 01:17 +0800, Pavel Machek wrote:
> Hi!
> 
> > upstream 4feba70a2c1a1a0c96909f657f48b2e11e682370
> > 
> > Since commit bc45b1d39a925b56796bebf8a397a0491489d85c acpi tables are
> > allowed to have an empty signature and /sys/firmware/acpi/tables uses the
> > signature as filename.  Applications using naive recursion through /sys
> > loop forever.  A possible solution would be: (replacing the zero length
> > filename with the string "NULL")
> 
> What about using some string that is not a valid table name? Shorter
> than 4 characters? AFAICT,
> 'NULL' table could be added to acpi in future...?
> 
> What if *two* tales have empty signature?
there are "NULL1" and "NULL2" in this case.

thanks,
rui


      reply	other threads:[~2008-11-17  1:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13  5:17 Len Brown
2008-11-15 17:17 ` Pavel Machek
2008-11-17  1:40   ` Zhang Rui [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=1226886012.15014.231.camel@rzhang-dt \
    --to=rui.zhang@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=stable@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

all inboxes | Powered by JetHome®