lkml.org 
[lkml]   [2009]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/4] [MTD] compat_ioctl cleanup
From
Date
On Wed, 2009-04-08 at 22:53 -0700, Kevin Cernekee wrote:
>
> +static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
> + unsigned long arg)
> +{
> + struct mtd_file_info *mfi = file->private_data;
> + struct mtd_info *mtd = mfi->mtd;
> + void __user *argp = (void __user *)arg;

Shouldn't that be 'argp = compat_ptr(arg)' ?

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation



\
 
 \ /
  Last update: 2009-05-29 17:01    [W:0.080 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site