Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44342
b: refs/heads/master
c: 2c003e8
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Dec 10, 2006
1 parent ee5db25 commit a7935e1
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 813e30e9ab917f5493147451cfdbf6356a3dcee0
refs/heads/master: 2c003e8e1c0c241aec162ba9ec781089c5b2ff3f
3 changes: 1 addition & 2 deletions trunk/drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ static int i2cdev_ioctl(struct inode *inode, struct file *file,
return 0;
case I2C_FUNCS:
funcs = i2c_get_functionality(client->adapter);
return (copy_to_user((unsigned long __user *)arg, &funcs,
sizeof(unsigned long)))?-EFAULT:0;
return put_user(funcs, (unsigned long __user *)arg);

case I2C_RDWR:
if (copy_from_user(&rdwr_arg,
Expand Down

0 comments on commit a7935e1

Please sign in to comment.