aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/proc.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-10-03 01:31:37 -0400
committerLen Brown <len.brown@intel.com>2009-10-03 01:31:37 -0400
commitc7db7ba5fc84e76044f403efbbba3af5fb01d19b (patch)
treebad1217e299591d257daf1226af21f17c82fb94e /drivers/acpi/proc.c
parent3934092591c65270fd0d37e2b7288df188dd0bea (diff)
parent50d716e477a456f6ef8ef05f06a34f3d96b66e80 (diff)
downloadlinux-2.6.34-ux500-c7db7ba5fc84e76044f403efbbba3af5fb01d19b.tar.gz
Merge branch 'misc' into release
Diffstat (limited to 'drivers/acpi/proc.c')
-rw-r--r--drivers/acpi/proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c
index d0d550d22a6..f8b6f555ba5 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;