Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4726
b: refs/heads/master
c: f422415
h: refs/heads/master
v: v3
  • Loading branch information
Panagiotis Issaris authored and Len Brown committed Jul 12, 2005
1 parent 896e923 commit a3e6506
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 83ea7445221651dc43cf8d22f81089e0cbccf22b
refs/heads/master: f4224153098c1103db592b28f304beeb9c02481b
3 changes: 3 additions & 0 deletions trunk/drivers/acpi/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ dispatch_write(struct file* file, const char __user * buffer,
* destination so that sscanf can be used on it safely.
*/
tmp_buffer = kmalloc(count + 1, GFP_KERNEL);
if(!tmp_buffer)
return -ENOMEM;

if (copy_from_user(tmp_buffer, buffer, count)) {
result = -EFAULT;
}
Expand Down

0 comments on commit a3e6506

Please sign in to comment.