Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153778
b: refs/heads/master
c: 0b6585c
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed May 29, 2009
1 parent f556d3c commit 2af8943
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 668ff9ab45d595222d3f90d7974ccba3518e3bb3
refs/heads/master: 0b6585ce05f169f10ce74329e87bd8c5070b4bb9
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
struct inode *inode = file->f_path.dentry->d_inode;
struct mtd_file_info *mfi = file->private_data;
struct mtd_info *mtd = mfi->mtd;
void __user *argp = (void __user *)arg;
void __user *argp = compat_ptr(arg);
int ret = 0;

lock_kernel();
Expand Down Expand Up @@ -874,7 +874,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
break;
}
default:
ret = mtd_ioctl(inode, file, cmd, arg);
ret = mtd_ioctl(inode, file, cmd, (unsigned long)argp);
}

unlock_kernel();
Expand Down

0 comments on commit 2af8943

Please sign in to comment.