• Patrick Mochel's avatar
    sleep: fix /proc/acpi/sleep write handling. · ad1fe473
    Patrick Mochel authored
    - 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.
    ad1fe473
sleep.c 16.1 KB