ACPI: avoid empty file name in sysfs
authorPeter Gruber <nokos@gmx.net>
Tue, 28 Oct 2008 03:59:36 +0000 (23:59 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 7 Nov 2008 03:09:52 +0000 (22:09 -0500)
commit4feba70a2c1a1a0c96909f657f48b2e11e682370
tree7b00f31b9ccabfb73ba78f3b3dc92cee3a29b3d1
parent49fdf6785fd660e18a1eb4588928f47e9fa29a9a
ACPI: avoid empty file name in sysfs

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")

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

Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/system.c