diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-16 11:33:41 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-16 11:33:41 +0100 |
commit | fe705ab1526bc2c8b7756f3a855f040ab2060af2 (patch) | |
tree | c4444d19983c5578f9ef2bddc1fa01b6e42f91a3 /drivers/acpi/proc.c | |
parent | Merge branch 'fix/hda' into topic/hda (diff) | |
parent | ALSA: rename "PC Speaker" controls to "Speaker" (diff) | |
download | linux-fe705ab1526bc2c8b7756f3a855f040ab2060af2.tar.xz linux-fe705ab1526bc2c8b7756f3a855f040ab2060af2.zip |
Merge branch 'topic/beep-rename' into topic/hda
Diffstat (limited to 'drivers/acpi/proc.c')
-rw-r--r-- | drivers/acpi/proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c index d0d550d22a6d..f8b6f555ba52 100644 --- a/drivers/acpi/proc.c +++ b/drivers/acpi/proc.c @@ -398,6 +398,8 @@ acpi_system_write_wakeup_device(struct file *file, if (len > 4) len = 4; + if (len < 0) + return -EFAULT; if (copy_from_user(strbuf, buffer, len)) return -EFAULT; |