ACPI sysfs.c strlen fix
authorPavel Vasilyev <pavel@pavlinux.ru>
Tue, 5 Jun 2012 04:02:05 +0000 (00:02 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:43 +0000 (04:11 +0100)
commit391493aea95c02174396051e5ed3296325c131ee
tree6b0360496632e6aa1bc5353b6f1a4656b628b8ff
parent8e65352dd2b452e53eb5821af449b4750ac8e35d
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: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/sysfs.c