question about mtdchar.c

David Woodhouse dwmw2 at infradead.org
Tue Dec 9 06:33:04 EST 2003


On Tue, 2003-12-09 at 12:28 +0100, Axel Ludszuweit wrote:
>         case MEMGETINFO:
> -               if (copy_to_user((struct mtd_info *)arg, mtd,
> +               if (copy_to_user((struct mtd_info_user *)arg, mtd,
>                                  sizeof(struct mtd_info_user)))
>                         return -EFAULT;

You're right -- thanks. But note that it's cosmetic; the type of the
pointer is irrelevant and the length is correct.

-- 
dwmw2




More information about the linux-mtd mailing list