Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323030
b: refs/heads/master
c: 35b1da4
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Sep 19, 2012
1 parent 2190d25 commit 18caac5
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 30ebb7fa0e3e92145b859ad6e44aa6dc636b4103
refs/heads/master: 35b1da4e1e1026b5195649170dfb9ebb52f808e0
9 changes: 6 additions & 3 deletions trunk/drivers/input/touchscreen/edt-ft5x06.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,12 @@ static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file,
}

read = min_t(size_t, count, tsdata->raw_bufsize - *off);
error = copy_to_user(buf, tsdata->raw_buffer + *off, read);
if (!error)
*off += read;
if (copy_to_user(buf, tsdata->raw_buffer + *off, read)) {
error = -EFAULT;
goto out;
}

*off += read;
out:
mutex_unlock(&tsdata->mutex);
return error ?: read;
Expand Down

0 comments on commit 18caac5

Please sign in to comment.