ACPI sysfs.c strlen fix
authorPavel Vasilyev <pavel@pavlinux.ru>
Tue, 5 Jun 2012 04:02:05 +0000 (00:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:07 +0000 (09:04 -0700)
commit0bd3d94b39087298b88f7ee2570d1062e09e8dfd
treeb31fcadcf9d9a9e953ea3189243ba80c9559e200
parentb429b0cf0a702501aaa7bdf59c235643c529a83c
ACPI sysfs.c strlen fix

commit 9f132652d94c96476b0b0a8caf0c10e96ab10fa8 upstream.

Current code is ignoring the last character of "enable" and "disable"
in comparisons.

https://bugzilla.kernel.org/show_bug.cgi?id=33732

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/sysfs.c