Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156183
b: refs/heads/master
c: 5b05d46
h: refs/heads/master
i:
  156181: cb0b090
  156179: 835e648
  156175: f8826c3
v: v3
  • Loading branch information
Michael Buesch authored and Len Brown committed Aug 2, 2009
1 parent b78fc15 commit 7c0b9e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f6fc2de9525e34ee93bd392fa046369a8cfbf1e
refs/heads/master: 5b05d4696d38c3172e79e855cc1e2ed044589508
2 changes: 2 additions & 0 deletions trunk/drivers/platform/x86/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ static int dispatch_procfs_write(struct file *file,

if (!ibm || !ibm->write)
return -EINVAL;
if (count > PAGE_SIZE - 2)
return -EINVAL;

kernbuf = kmalloc(count + 2, GFP_KERNEL);
if (!kernbuf)
Expand Down

0 comments on commit 7c0b9e0

Please sign in to comment.