sleep: fix /proc/acpi/sleep write handling.
- Prevent users from screwing themselves by removing support for entering S5 from the proc file. S5 is 'soft-off' and the state the system enters when powering down. It needs to be preceded by a proper shutdown sequence and should not be triggered manually. - Fix a potential unchecked array reference using the written value as the index.
Showing
Please register or sign in to comment