[PATCH] [MTD] [CORE]: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctls

Artem Bityutskiy dedekind at infradead.org
Tue Oct 17 11:45:11 EDT 2006


Ricard,

On Tue, 2006-10-17 at 17:27 +0200, Ricard Wanderlof wrote:
> Hi,
> 
> This is my first patch submission, so please correct me if I've done 
> anything stupid or just plain wrong. :-)
> 
> 
> 1. The ECCGETLAYOUT ioctl copy_to_user() call has a superfluous '&' 
> causing the resulting information to be garbage rather than the intended 
> mtd->ecclayout.
> 
> 2. The MEMGETOOBSEL misses copying mtd->ecclayout->eccbytes so the
> resulting field of the returned structure contains garbage.

the patch looks OK, but it does not apply to the mtd git kernel. Will
you mind to send a patch against mtd-2.6.git please?

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list