Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297709
b: refs/heads/master
c: 9dd4cca
h: refs/heads/master
i:
  297707: 5afb025
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 20, 2012
1 parent 9cefa65 commit 592fd0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 6684ba202b5ab2f36d574c72fe50c207d99b3e35
refs/heads/master: 9dd4ccaaf8cde924b78ba5f5b1a8ce3e7ead687f
5 changes: 1 addition & 4 deletions trunk/drivers/char/lp.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,16 +706,13 @@ static long lp_compat_ioctl(struct file *file, unsigned int cmd,
{
unsigned int minor;
struct timeval par_timeout;
struct compat_timeval __user *tc;
int ret;

minor = iminor(file->f_path.dentry->d_inode);
mutex_lock(&lp_mutex);
switch (cmd) {
case LPSETTIMEOUT:
tc = compat_ptr(arg);
if (get_user(par_timeout.tv_sec, &tc->tv_sec) ||
get_user(par_timeout.tv_usec, &tc->tv_usec)) {
if (compat_get_timeval(&par_timeout, compat_ptr(arg))) {
ret = -EFAULT;
break;
}
Expand Down

0 comments on commit 592fd0a

Please sign in to comment.