[PATCH 3/4] [MTD] compat_ioctl cleanup
David Woodhouse
dwmw2 at infradead.org
Fri May 29 10:58:06 EDT 2009
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 at intel.com Intel Corporation
More information about the linux-mtd
mailing list