Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262882
b: refs/heads/master
c: 09f9390
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Aug 2, 2011
1 parent 52e3a93 commit fb87306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 8f89615528b11eabda68faaf2438d09c9565a125
refs/heads/master: 09f9390d797ff34020faab866996884fd93a0081
5 changes: 3 additions & 2 deletions trunk/drivers/staging/speakup/devsynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ static ssize_t speakup_file_write(struct file *fp, const char *buffer,
{
size_t count = nbytes;
const char *ptr = buffer;
int bytes;
size_t bytes;
unsigned long flags;
u_char buf[256];

if (synth == NULL)
return -ENODEV;
while (count > 0) {
bytes = min_t(size_t, count, sizeof(buf));
bytes = min(count, sizeof(buf));
if (copy_from_user(buf, ptr, bytes))
return -EFAULT;
count -= bytes;
Expand Down

0 comments on commit fb87306

Please sign in to comment.