Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220951
b: refs/heads/master
c: 448d7b5
h: refs/heads/master
i:
  220949: fa2ab4c
  220947: 791e1f8
  220943: 60e6af4
v: v3
  • Loading branch information
Nelson Elhage authored and David S. Miller committed Oct 28, 2010
1 parent 2dbbe35 commit fab3bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8acfe468b0384e834a303f08ebc4953d72fb690a
refs/heads/master: 448d7b5daf043d109df98e3e8f8deb165c2e8896
7 changes: 4 additions & 3 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,11 @@ static ssize_t pktgen_if_write(struct file *file,
i += len;

if (debug) {
char tb[count + 1];
if (copy_from_user(tb, user_buffer, count))
size_t copy = min(count, 1023);
char tb[copy + 1];
if (copy_from_user(tb, user_buffer, copy))
return -EFAULT;
tb[count] = 0;
tb[copy] = 0;
printk(KERN_DEBUG "pktgen: %s,%lu buffer -:%s:-\n", name,
(unsigned long)count, tb);
}
Expand Down

0 comments on commit fab3bf6

Please sign in to comment.